gpu: add RenderPassTimestampWrite
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
eead8fd29c
commit
a91186c2c9
2 changed files with 7 additions and 6 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
pub const WGPURenderPassTimestampWrite = extern struct {
|
|
||||||
query_set: QuerySet,
|
|
||||||
query_index: u32,
|
|
||||||
location: RenderPassTimestampLocation,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const RequestAdapterOptions = extern struct {
|
pub const RequestAdapterOptions = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
compatible_surface: Surface = Surface.none, // nullable
|
compatible_surface: Surface = Surface.none, // nullable
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimesta
|
||||||
pub const ChainedStruct = @import("types.zig").ChainedStruct;
|
pub const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
pub const LoadOp = @import("types.zig").LoadOp;
|
pub const LoadOp = @import("types.zig").LoadOp;
|
||||||
pub const StoreOp = @import("types.zig").StoreOp;
|
pub const StoreOp = @import("types.zig").StoreOp;
|
||||||
|
pub const RenderPassTimestampLocation = @import("types.zig").RenderPassTimestampLocation;
|
||||||
|
|
||||||
pub const ComputePassTimestampWrite = struct {
|
pub const ComputePassTimestampWrite = struct {
|
||||||
query_set: QuerySet,
|
query_set: QuerySet,
|
||||||
|
|
@ -68,6 +69,12 @@ pub const RenderPassDescriptorMaxDrawCount = extern struct {
|
||||||
max_draw_count: u64,
|
max_draw_count: u64,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const RenderPassTimestampWrite = extern struct {
|
||||||
|
query_set: QuerySet,
|
||||||
|
query_index: u32,
|
||||||
|
location: RenderPassTimestampLocation,
|
||||||
|
};
|
||||||
|
|
||||||
test {
|
test {
|
||||||
refAllDecls(@import("adapter.zig"));
|
refAllDecls(@import("adapter.zig"));
|
||||||
refAllDecls(@import("bind_group.zig"));
|
refAllDecls(@import("bind_group.zig"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue