gpu: internalize QuerySet types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1a57ae1c4d
commit
f4a6e08357
3 changed files with 14 additions and 15 deletions
|
|
@ -4,6 +4,16 @@ const QueryType = @import("types.zig").QueryType;
|
|||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const QuerySet = opaque {
|
||||
pub const Descriptor = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
type: QueryType,
|
||||
count: u32,
|
||||
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
|
||||
pipeline_statistics: ?[*]const PipelineStatisticName = null,
|
||||
pipeline_statistics_count: u32 = 0,
|
||||
};
|
||||
|
||||
pub inline fn destroy(query_set: *QuerySet) void {
|
||||
Impl.querySetDestroy(query_set);
|
||||
}
|
||||
|
|
@ -28,13 +38,3 @@ pub const QuerySet = opaque {
|
|||
Impl.querySetRelease(query_set);
|
||||
}
|
||||
};
|
||||
|
||||
pub const QuerySetDescriptor = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
type: QueryType,
|
||||
count: u32,
|
||||
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
|
||||
pipeline_statistics: ?[*]const PipelineStatisticName = null,
|
||||
pipeline_statistics_count: u32 = 0,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue