gpu: add BlendFactor enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0685fea109
commit
7e8e2e921b
3 changed files with 20 additions and 23 deletions
23
gpu/src/TODO
23
gpu/src/TODO
|
|
@ -27,29 +27,6 @@ typedef struct WGPUSamplerImpl* WGPUSampler;
|
|||
typedef struct WGPUTextureImpl* WGPUTexture;
|
||||
typedef struct WGPUTextureViewImpl* WGPUTextureView;
|
||||
|
||||
typedef enum WGPUAlphaMode {
|
||||
WGPUAlphaMode_Premultiplied = 0x00000000,
|
||||
WGPUAlphaMode_Unpremultiplied = 0x00000001,
|
||||
WGPUAlphaMode_Force32 = 0x7FFFFFFF
|
||||
} WGPUAlphaMode;
|
||||
|
||||
typedef enum WGPUBlendFactor {
|
||||
WGPUBlendFactor_Zero = 0x00000000,
|
||||
WGPUBlendFactor_One = 0x00000001,
|
||||
WGPUBlendFactor_Src = 0x00000002,
|
||||
WGPUBlendFactor_OneMinusSrc = 0x00000003,
|
||||
WGPUBlendFactor_SrcAlpha = 0x00000004,
|
||||
WGPUBlendFactor_OneMinusSrcAlpha = 0x00000005,
|
||||
WGPUBlendFactor_Dst = 0x00000006,
|
||||
WGPUBlendFactor_OneMinusDst = 0x00000007,
|
||||
WGPUBlendFactor_DstAlpha = 0x00000008,
|
||||
WGPUBlendFactor_OneMinusDstAlpha = 0x00000009,
|
||||
WGPUBlendFactor_SrcAlphaSaturated = 0x0000000A,
|
||||
WGPUBlendFactor_Constant = 0x0000000B,
|
||||
WGPUBlendFactor_OneMinusConstant = 0x0000000C,
|
||||
WGPUBlendFactor_Force32 = 0x7FFFFFFF
|
||||
} WGPUBlendFactor;
|
||||
|
||||
typedef enum WGPUBlendOperation {
|
||||
WGPUBlendOperation_Add = 0x00000000,
|
||||
WGPUBlendOperation_Subtract = 0x00000001,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue