gpu: add RenderPassTimestampWrite
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7eb06f25f6
commit
58fe1b12f7
3 changed files with 9 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue