gpu: convert QuerySet from enum(usize) to *opaque
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d50bc3527b
commit
3d0051e720
2 changed files with 9 additions and 14 deletions
|
|
@ -2,18 +2,13 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
|||
const PipelineStatisticName = @import("types.zig").PipelineStatisticName;
|
||||
const QueryType = @import("types.zig").QueryType;
|
||||
|
||||
pub const QuerySet = enum(usize) {
|
||||
_,
|
||||
pub const QuerySet = *opaque {};
|
||||
|
||||
// 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,
|
||||
};
|
||||
pub const QuerySetDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
type: QueryType,
|
||||
count: u32,
|
||||
pipeline_statistics: [*]const PipelineStatisticName,
|
||||
pipeline_statistics_count: u32,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue