gpu: add RenderPassTimestampWrite

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 17:06:41 -07:00 committed by Stephen Gutekanst
parent 7eb06f25f6
commit 58fe1b12f7
3 changed files with 9 additions and 6 deletions

View file

@ -143,12 +143,6 @@ typedef struct WGPUPrimitiveDepthClampingState {
bool clampDepth;
} WGPUPrimitiveDepthClampingState;
typedef struct WGPURenderPassTimestampWrite {
WGPUQuerySet querySet;
uint32_t queryIndex;
WGPURenderPassTimestampLocation location;
} WGPURenderPassTimestampWrite;
typedef struct WGPURenderPassDepthStencilAttachment {
WGPUTextureView view;
WGPULoadOp depthLoadOp;

View file

@ -97,6 +97,7 @@ pub const DepthStencilState = @import("structs.zig").DepthStencilState;
pub const ConstantEntry = @import("structs.zig").ConstantEntry;
pub const ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStageDescriptor;
pub const ComputePassTimestampWrite = @import("structs.zig").ComputePassTimestampWrite;
pub const RenderPassTimestampWrite = @import("structs.zig").RenderPassTimestampWrite;
// Enumerations
pub const Feature = @import("enums.zig").Feature;

View file

@ -14,6 +14,7 @@ const CullMode = @import("enums.zig").CullMode;
const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
const CompareFunction = @import("enums.zig").CompareFunction;
const ComputePassTimestampLocation = @import("enums.zig").ComputePassTimestampLocation;
const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestampLocation;
pub const CompilationMessage = struct {
message: [:0]const u8,
@ -79,6 +80,12 @@ pub const ComputePassTimestampWrite = struct {
location: ComputePassTimestampLocation,
};
pub const RenderPassTimestampWrite = struct {
query_set: QuerySet,
query_index: u32,
location: RenderPassTimestampLocation,
};
test "syntax" {
_ = CompilationMessage;
_ = CompilationInfo;
@ -89,4 +96,5 @@ test "syntax" {
_ = ConstantEntry;
_ = ProgrammableStageDescriptor;
_ = ComputePassTimestampWrite;
_ = RenderPassTimestampWrite;
}