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
|
|
@ -90,7 +90,7 @@ pub const RenderPassDescriptor = extern struct {
|
||||||
color_attachment_count: u32,
|
color_attachment_count: u32,
|
||||||
color_attachments: [*]const types.RenderPassColorAttachment,
|
color_attachments: [*]const types.RenderPassColorAttachment,
|
||||||
depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment = null, // nullable
|
depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment = null, // nullable
|
||||||
occlusion_query_set: query_set.QuerySet = query_set.QuerySet.none, // nullable
|
occlusion_query_set: ?query_set.QuerySet,
|
||||||
timestamp_write_count: u32,
|
timestamp_write_count: u32,
|
||||||
timestamp_writes: [*]const RenderPassTimestampWrite,
|
timestamp_writes: [*]const RenderPassTimestampWrite,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,13 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
const PipelineStatisticName = @import("types.zig").PipelineStatisticName;
|
const PipelineStatisticName = @import("types.zig").PipelineStatisticName;
|
||||||
const QueryType = @import("types.zig").QueryType;
|
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 QuerySetDescriptor = extern struct {
|
||||||
pub const none: QuerySet = @intToEnum(QuerySet, 0);
|
next_in_chain: *const ChainedStruct,
|
||||||
|
label: ?[*:0]const u8 = null,
|
||||||
pub const Descriptor = extern struct {
|
type: QueryType,
|
||||||
next_in_chain: *const ChainedStruct,
|
count: u32,
|
||||||
label: ?[*:0]const u8 = null,
|
pipeline_statistics: [*]const PipelineStatisticName,
|
||||||
type: QueryType,
|
pipeline_statistics_count: u32,
|
||||||
count: u32,
|
|
||||||
pipeline_statistics: [*]const PipelineStatisticName,
|
|
||||||
pipeline_statistics_count: u32,
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue