metal: partial implementation of pipeline states.

Add BGRA8 pixel format.
This commit is contained in:
Alex Szpakowski
2020-05-03 12:48:43 -03:00
parent 3a8f6a35a2
commit 9765485222
13 changed files with 318 additions and 144 deletions
+3 -3
View File
@@ -110,24 +110,24 @@ enum CompareMode
struct BlendState
{
bool enable = false;
BlendOperation operationRGB = BLENDOP_ADD;
BlendOperation operationA = BLENDOP_ADD;
BlendFactor srcFactorRGB = BLENDFACTOR_ONE;
BlendFactor srcFactorA = BLENDFACTOR_ONE;
BlendFactor dstFactorRGB = BLENDFACTOR_ZERO;
BlendFactor dstFactorA = BLENDFACTOR_ZERO;
bool enable = false;
BlendState() {}
BlendState(BlendOperation opRGB, BlendOperation opA, BlendFactor srcRGB, BlendFactor srcA, BlendFactor dstRGB, BlendFactor dstA)
: enable(true)
, operationRGB(opRGB)
: operationRGB(opRGB)
, operationA(opA)
, srcFactorRGB(srcRGB)
, srcFactorA(srcA)
, dstFactorRGB(dstRGB)
, dstFactorA(dstA)
, enable(true)
{}
bool operator == (const BlendState &b) const