Remove dual source blending

It is not supported on many mobile GPUS on Vulkan
http://vulkan.gpuinfo.org/listreports.php?feature=dualSrcBlend&option=not
and is optional on Metal
This commit is contained in:
Austin Eng
2017-08-03 16:24:49 -04:00
committed by Austin Eng
parent 6366a019db
commit cce6b01b6d
5 changed files with 1 additions and 218 deletions

View File

@@ -49,14 +49,6 @@ namespace d3d12 {
return D3D12_BLEND_BLEND_FACTOR;
case nxt::BlendFactor::OneMinusBlendColor:
return D3D12_BLEND_INV_BLEND_FACTOR;
case nxt::BlendFactor::Src1Color:
return D3D12_BLEND_SRC1_COLOR;
case nxt::BlendFactor::OneMinusSrc1Color:
return D3D12_BLEND_INV_SRC1_COLOR;
case nxt::BlendFactor::Src1Alpha:
return D3D12_BLEND_SRC1_ALPHA;
case nxt::BlendFactor::OneMinusSrc1Alpha:
return D3D12_BLEND_INV_SRC1_ALPHA;
default:
UNREACHABLE();
}

View File

@@ -49,14 +49,6 @@ namespace metal {
return alpha ? MTLBlendFactorBlendAlpha : MTLBlendFactorBlendColor;
case nxt::BlendFactor::OneMinusBlendColor:
return alpha ? MTLBlendFactorOneMinusBlendAlpha : MTLBlendFactorOneMinusBlendColor;
case nxt::BlendFactor::Src1Color:
return MTLBlendFactorSource1Color;
case nxt::BlendFactor::OneMinusSrc1Color:
return MTLBlendFactorOneMinusSource1Color;
case nxt::BlendFactor::Src1Alpha:
return MTLBlendFactorSource1Alpha;
case nxt::BlendFactor::OneMinusSrc1Alpha:
return MTLBlendFactorOneMinusSource1Alpha;
}
}

View File

@@ -49,14 +49,6 @@ namespace opengl {
return alpha ? GL_CONSTANT_ALPHA : GL_CONSTANT_COLOR;
case nxt::BlendFactor::OneMinusBlendColor:
return alpha ? GL_ONE_MINUS_CONSTANT_ALPHA : GL_ONE_MINUS_CONSTANT_COLOR;
case nxt::BlendFactor::Src1Color:
return GL_SRC1_COLOR;
case nxt::BlendFactor::OneMinusSrc1Color:
return GL_ONE_MINUS_SRC1_COLOR;
case nxt::BlendFactor::Src1Alpha:
return GL_SRC1_ALPHA;
case nxt::BlendFactor::OneMinusSrc1Alpha:
return GL_ONE_MINUS_SRC1_ALPHA;
default:
UNREACHABLE();
}