gpu: add ComputePassTimestampWrite

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 01:17:51 -07:00 committed by Stephen Gutekanst
parent 97724b8779
commit bb399b5050
2 changed files with 8 additions and 6 deletions

View file

@ -13,12 +13,6 @@ typedef struct WGPUCompilationMessage {
length: u64,
} WGPUCompilationMessage;
typedef struct WGPUComputePassTimestampWrite {
WGPUQuerySet querySet;
query_index: u32,
WGPUComputePassTimestampLocation location;
} WGPUComputePassTimestampWrite;
typedef struct WGPUConstantEntry {
next_in_chain: *const ChainedStruct,
char const * key;

View file

@ -34,7 +34,15 @@ pub const SwapChain = @import("swap_chain.zig").SwapChain;
pub const Texture = @import("texture.zig").Texture;
pub const TextureView = @import("texture_view.zig").TextureView;
// TODO: export all types.zig
pub const AlphaMode = @import("types.zig").AlphaMode;
pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimestampLocation;
pub const ComputePassTimestampWrite = struct {
query_set: QuerySet,
query_index: u32,
location: ComputePassTimestampLocation,
};
test {
refAllDecls(@import("adapter.zig"));