gpu: add LoadOp enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
71e6049ada
commit
1aeefec62b
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPULoadOp {
|
|
||||||
WGPULoadOp_Undefined = 0x00000000,
|
|
||||||
WGPULoadOp_Clear = 0x00000001,
|
|
||||||
WGPULoadOp_Load = 0x00000002,
|
|
||||||
WGPULoadOp_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPULoadOp;
|
|
||||||
|
|
||||||
typedef enum WGPULoggingType {
|
typedef enum WGPULoggingType {
|
||||||
WGPULoggingType_Verbose = 0x00000000,
|
WGPULoggingType_Verbose = 0x00000000,
|
||||||
WGPULoggingType_Info = 0x00000001,
|
WGPULoggingType_Info = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,12 @@ pub const IndexFormat = enum(u32) {
|
||||||
uint32 = 0x00000002,
|
uint32 = 0x00000002,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const LoadOp = enum(u32) {
|
||||||
|
undef = 0x00000000,
|
||||||
|
clear = 0x00000001,
|
||||||
|
load = 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