gpu: add ComputePassTimestampWrite
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
79e80467ca
commit
628f3d59c2
3 changed files with 9 additions and 6 deletions
|
|
@ -165,12 +165,6 @@ typedef struct WGPUFragmentState {
|
||||||
WGPUColorTargetState const * targets;
|
WGPUColorTargetState const * targets;
|
||||||
} WGPUFragmentState;
|
} WGPUFragmentState;
|
||||||
|
|
||||||
typedef struct WGPUComputePassTimestampWrite {
|
|
||||||
WGPUQuerySet querySet;
|
|
||||||
uint32_t queryIndex;
|
|
||||||
WGPUComputePassTimestampLocation location;
|
|
||||||
} WGPUComputePassTimestampWrite;
|
|
||||||
|
|
||||||
typedef struct WGPUExternalTextureBindingEntry {
|
typedef struct WGPUExternalTextureBindingEntry {
|
||||||
WGPUChainedStruct chain;
|
WGPUChainedStruct chain;
|
||||||
WGPUExternalTexture externalTexture;
|
WGPUExternalTexture externalTexture;
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ pub const StorageTextureBindingLayout = @import("structs.zig").StorageTextureBin
|
||||||
pub const DepthStencilState = @import("structs.zig").DepthStencilState;
|
pub const DepthStencilState = @import("structs.zig").DepthStencilState;
|
||||||
pub const ConstantEntry = @import("structs.zig").ConstantEntry;
|
pub const ConstantEntry = @import("structs.zig").ConstantEntry;
|
||||||
pub const ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStageDescriptor;
|
pub const ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStageDescriptor;
|
||||||
|
pub const ComputePassTimestampWrite = @import("structs.zig").ComputePassTimestampWrite;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ const Buffer = @import("Buffer.zig");
|
||||||
const Sampler = @import("Sampler.zig");
|
const Sampler = @import("Sampler.zig");
|
||||||
const Texture = @import("Texture.zig");
|
const Texture = @import("Texture.zig");
|
||||||
const TextureView = @import("TextureView.zig");
|
const TextureView = @import("TextureView.zig");
|
||||||
|
const ShaderModule = @import("ShaderModule.zig");
|
||||||
const StencilFaceState = @import("data.zig").StencilFaceState;
|
const StencilFaceState = @import("data.zig").StencilFaceState;
|
||||||
const CompilationMessageType = @import("enums.zig").CompilationMessageType;
|
const CompilationMessageType = @import("enums.zig").CompilationMessageType;
|
||||||
const PrimitiveTopology = @import("enums.zig").PrimitiveTopology;
|
const PrimitiveTopology = @import("enums.zig").PrimitiveTopology;
|
||||||
|
|
@ -70,6 +71,12 @@ pub const ProgrammableStageDescriptor = struct {
|
||||||
constants: []const ConstantEntry,
|
constants: []const ConstantEntry,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const ComputePassTimestampWrite = struct {
|
||||||
|
query_set: QuerySet,
|
||||||
|
query_index: u32,
|
||||||
|
location: ComputePassTimestampLocation,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = CompilationMessage;
|
_ = CompilationMessage;
|
||||||
_ = CompilationInfo;
|
_ = CompilationInfo;
|
||||||
|
|
@ -79,4 +86,5 @@ test "syntax" {
|
||||||
_ = DepthStencilState;
|
_ = DepthStencilState;
|
||||||
_ = ConstantEntry;
|
_ = ConstantEntry;
|
||||||
_ = ProgrammableStageDescriptor;
|
_ = ProgrammableStageDescriptor;
|
||||||
|
_ = ComputePassTimestampWrite;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue