gpu: add StoreOp enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
051126bbf0
commit
c91d969c7b
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUStoreOp {
|
|
||||||
WGPUStoreOp_Undefined = 0x00000000,
|
|
||||||
WGPUStoreOp_Store = 0x00000001,
|
|
||||||
WGPUStoreOp_Discard = 0x00000002,
|
|
||||||
WGPUStoreOp_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUStoreOp;
|
|
||||||
|
|
||||||
typedef enum WGPUTextureAspect {
|
typedef enum WGPUTextureAspect {
|
||||||
WGPUTextureAspect_All = 0x00000000,
|
WGPUTextureAspect_All = 0x00000000,
|
||||||
WGPUTextureAspect_StencilOnly = 0x00000001,
|
WGPUTextureAspect_StencilOnly = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -249,6 +249,12 @@ pub const StorageTextureAccess = enum(u32) {
|
||||||
write_only = 0x00000001,
|
write_only = 0x00000001,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const StoreOp = enum(u32) {
|
||||||
|
undef = 0x00000000,
|
||||||
|
store = 0x00000001,
|
||||||
|
discard = 0x00000002,
|
||||||
|
};
|
||||||
|
|
||||||
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