gpu: add StencilOperation enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1d8f6f9064
commit
0883421905
2 changed files with 11 additions and 12 deletions
|
|
@ -1,17 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUStencilOperation {
|
|
||||||
WGPUStencilOperation_Keep = 0x00000000,
|
|
||||||
WGPUStencilOperation_Zero = 0x00000001,
|
|
||||||
WGPUStencilOperation_Replace = 0x00000002,
|
|
||||||
WGPUStencilOperation_Invert = 0x00000003,
|
|
||||||
WGPUStencilOperation_IncrementClamp = 0x00000004,
|
|
||||||
WGPUStencilOperation_DecrementClamp = 0x00000005,
|
|
||||||
WGPUStencilOperation_IncrementWrap = 0x00000006,
|
|
||||||
WGPUStencilOperation_DecrementWrap = 0x00000007,
|
|
||||||
WGPUStencilOperation_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUStencilOperation;
|
|
||||||
|
|
||||||
typedef enum WGPUStorageTextureAccess {
|
typedef enum WGPUStorageTextureAccess {
|
||||||
WGPUStorageTextureAccess_Undefined = 0x00000000,
|
WGPUStorageTextureAccess_Undefined = 0x00000000,
|
||||||
WGPUStorageTextureAccess_WriteOnly = 0x00000001,
|
WGPUStorageTextureAccess_WriteOnly = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,17 @@ pub const SType = enum(u32) {
|
||||||
dawn_cache_device_descriptor = 0x000003ED,
|
dawn_cache_device_descriptor = 0x000003ED,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const StencilOperation = enum(u32) {
|
||||||
|
keep = 0x00000000,
|
||||||
|
zero = 0x00000001,
|
||||||
|
replace = 0x00000002,
|
||||||
|
invert = 0x00000003,
|
||||||
|
increment_clamp = 0x00000004,
|
||||||
|
decrement_clamp = 0x00000005,
|
||||||
|
increment_wrap = 0x00000006,
|
||||||
|
decrement_wrap = 0x00000007,
|
||||||
|
};
|
||||||
|
|
||||||
test "BackendType name" {
|
test "BackendType name" {
|
||||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue