gpu: add StorageTextureAccess enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0883421905
commit
051126bbf0
2 changed files with 5 additions and 6 deletions
|
|
@ -1,11 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUStorageTextureAccess {
|
|
||||||
WGPUStorageTextureAccess_Undefined = 0x00000000,
|
|
||||||
WGPUStorageTextureAccess_WriteOnly = 0x00000001,
|
|
||||||
WGPUStorageTextureAccess_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUStorageTextureAccess;
|
|
||||||
|
|
||||||
typedef enum WGPUStoreOp {
|
typedef enum WGPUStoreOp {
|
||||||
WGPUStoreOp_Undefined = 0x00000000,
|
WGPUStoreOp_Undefined = 0x00000000,
|
||||||
WGPUStoreOp_Store = 0x00000001,
|
WGPUStoreOp_Store = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -244,6 +244,11 @@ pub const StencilOperation = enum(u32) {
|
||||||
decrement_wrap = 0x00000007,
|
decrement_wrap = 0x00000007,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const StorageTextureAccess = enum(u32) {
|
||||||
|
undef = 0x00000000,
|
||||||
|
write_only = 0x00000001,
|
||||||
|
};
|
||||||
|
|
||||||
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