gpu: add CompareFunction enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
19425d4f86
commit
3a4abcef6f
2 changed files with 12 additions and 13 deletions
|
|
@ -1,18 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUCompareFunction {
|
|
||||||
WGPUCompareFunction_Undefined = 0x00000000,
|
|
||||||
WGPUCompareFunction_Never = 0x00000001,
|
|
||||||
WGPUCompareFunction_Less = 0x00000002,
|
|
||||||
WGPUCompareFunction_LessEqual = 0x00000003,
|
|
||||||
WGPUCompareFunction_Greater = 0x00000004,
|
|
||||||
WGPUCompareFunction_GreaterEqual = 0x00000005,
|
|
||||||
WGPUCompareFunction_Equal = 0x00000006,
|
|
||||||
WGPUCompareFunction_NotEqual = 0x00000007,
|
|
||||||
WGPUCompareFunction_Always = 0x00000008,
|
|
||||||
WGPUCompareFunction_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUCompareFunction;
|
|
||||||
|
|
||||||
typedef enum WGPUCompilationInfoRequestStatus {
|
typedef enum WGPUCompilationInfoRequestStatus {
|
||||||
WGPUCompilationInfoRequestStatus_Success = 0x00000000,
|
WGPUCompilationInfoRequestStatus_Success = 0x00000000,
|
||||||
WGPUCompilationInfoRequestStatus_Error = 0x00000001,
|
WGPUCompilationInfoRequestStatus_Error = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -50,3 +50,15 @@ pub const BlendOperation = enum(u32) {
|
||||||
min = 0x00000003,
|
min = 0x00000003,
|
||||||
max = 0x00000004,
|
max = 0x00000004,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const CompareFunction = enum(u32) {
|
||||||
|
undef = 0x00000000,
|
||||||
|
never = 0x00000001,
|
||||||
|
less = 0x00000002,
|
||||||
|
less_equal = 0x00000003,
|
||||||
|
greater = 0x00000004,
|
||||||
|
greater_equal = 0x00000005,
|
||||||
|
equal = 0x00000006,
|
||||||
|
not_equal = 0x00000007,
|
||||||
|
always = 0x00000008,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue