gpu: add RenderPassTimestampLocation enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9f6a3f119a
commit
fbed4402de
2 changed files with 5 additions and 6 deletions
|
|
@ -1,11 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPURenderPassTimestampLocation {
|
|
||||||
WGPURenderPassTimestampLocation_Beginning = 0x00000000,
|
|
||||||
WGPURenderPassTimestampLocation_End = 0x00000001,
|
|
||||||
WGPURenderPassTimestampLocation_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPURenderPassTimestampLocation;
|
|
||||||
|
|
||||||
typedef enum WGPURequestAdapterStatus {
|
typedef enum WGPURequestAdapterStatus {
|
||||||
WGPURequestAdapterStatus_Success = 0x00000000,
|
WGPURequestAdapterStatus_Success = 0x00000000,
|
||||||
WGPURequestAdapterStatus_Unavailable = 0x00000001,
|
WGPURequestAdapterStatus_Unavailable = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,11 @@ pub const QueryType = enum(u32) {
|
||||||
timestamp = 0x00000002,
|
timestamp = 0x00000002,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const RenderPassTimestampLocation = enum(u32) {
|
||||||
|
beginning = 0x00000000,
|
||||||
|
end = 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