gpu: add QuerySet.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 19:51:51 -07:00 committed by Stephen Gutekanst
parent db0fc8ad99
commit 0eff9e1cb3
2 changed files with 13 additions and 9 deletions

View file

@ -1,6 +1,19 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
const PipelineStatisticName = @import("types.zig").PipelineStatisticName;
const QueryType = @import("types.zig").QueryType;
pub const QuerySet = enum(usize) {
_,
// TODO: verify there is a use case for nullable value of this type.
pub const none: QuerySet = @intToEnum(QuerySet, 0);
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
type: QueryType,
count: u32,
pipeline_statistics: [*]const PipelineStatisticName,
pipeline_statistics_count: u32,
};
};