gpu: add QueryType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c91fd182ce
commit
9b1bee04fd
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUQueryType {
|
|
||||||
WGPUQueryType_Occlusion = 0x00000000,
|
|
||||||
WGPUQueryType_PipelineStatistics = 0x00000001,
|
|
||||||
WGPUQueryType_Timestamp = 0x00000002,
|
|
||||||
WGPUQueryType_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUQueryType;
|
|
||||||
|
|
||||||
typedef enum WGPUQueueWorkDoneStatus {
|
typedef enum WGPUQueueWorkDoneStatus {
|
||||||
WGPUQueueWorkDoneStatus_Success = 0x00000000,
|
WGPUQueueWorkDoneStatus_Success = 0x00000000,
|
||||||
WGPUQueueWorkDoneStatus_Error = 0x00000001,
|
WGPUQueueWorkDoneStatus_Error = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -185,6 +185,12 @@ pub const PrimitiveTopology = enum(u32) {
|
||||||
triangle_strip = 0x00000004,
|
triangle_strip = 0x00000004,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const QueryType = enum(u32) {
|
||||||
|
occlusion = 0x00000000,
|
||||||
|
pipeline_statistics = 0x00000001,
|
||||||
|
timestamp = 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