gpu: add ComputePassEncoder.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9398df0211
commit
52c22e0ff2
2 changed files with 8 additions and 7 deletions
|
|
@ -1,3 +1,5 @@
|
|||
const ComputePassTimestampWrite = @import("structs.zig").ComputePassTimestampWrite;
|
||||
|
||||
const ComputePassEncoder = @This();
|
||||
|
||||
/// The type erased pointer to the ComputePassEncoder implementation
|
||||
|
|
@ -34,8 +36,14 @@ pub inline fn setLabel(enc: ComputePassEncoder, label: [:0]const u8) void {
|
|||
enc.vtable.setLabel(enc.ptr, label);
|
||||
}
|
||||
|
||||
pub const Descriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
timestamp_writes: []const ComputePassTimestampWrite,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
_ = Descriptor;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,13 +57,6 @@ typedef struct WGPUDawnTogglesDeviceDescriptor {
|
|||
|
||||
|
||||
|
||||
typedef struct WGPUComputePassDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * label;
|
||||
uint32_t timestampWriteCount;
|
||||
WGPUComputePassTimestampWrite const * timestampWrites;
|
||||
} WGPUComputePassDescriptor;
|
||||
|
||||
typedef struct WGPUProgrammableStageDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
WGPUShaderModule module;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue