gpu: add RenderPassTimestampWrite

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:01:43 -07:00 committed by Stephen Gutekanst
parent eead8fd29c
commit a91186c2c9
2 changed files with 7 additions and 6 deletions

View file

@ -1,9 +1,3 @@
pub const WGPURenderPassTimestampWrite = extern struct {
query_set: QuerySet,
query_index: u32,
location: RenderPassTimestampLocation,
};
pub const RequestAdapterOptions = extern struct {
next_in_chain: *const ChainedStruct,
compatible_surface: Surface = Surface.none, // nullable

View file

@ -42,6 +42,7 @@ pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimesta
pub const ChainedStruct = @import("types.zig").ChainedStruct;
pub const LoadOp = @import("types.zig").LoadOp;
pub const StoreOp = @import("types.zig").StoreOp;
pub const RenderPassTimestampLocation = @import("types.zig").RenderPassTimestampLocation;
pub const ComputePassTimestampWrite = struct {
query_set: QuerySet,
@ -68,6 +69,12 @@ pub const RenderPassDescriptorMaxDrawCount = extern struct {
max_draw_count: u64,
};
pub const RenderPassTimestampWrite = extern struct {
query_set: QuerySet,
query_index: u32,
location: RenderPassTimestampLocation,
};
test {
refAllDecls(@import("adapter.zig"));
refAllDecls(@import("bind_group.zig"));