diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 680887be..9807d32a 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,12 +1,3 @@ -pub const WGPUQuerySetDescriptor = extern struct { - next_in_chain: *const ChainedStruct, - label: ?[*:0]const u8 = null, - type: QueryType, - count: u32, - pipeline_statistics: [*]const PipelineStatisticsName, - pipeline_statistics_count: u32, -}; - pub const WGPUQueueDescriptor = extern struct { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, diff --git a/gpu/src/query_set.zig b/gpu/src/query_set.zig index 5100acd8..023192d8 100644 --- a/gpu/src/query_set.zig +++ b/gpu/src/query_set.zig @@ -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, + }; };