diff --git a/gpu/src/ComputePassEncoder.zig b/gpu/src/ComputePassEncoder.zig index 1ea4fd22..ff50dd18 100644 --- a/gpu/src/ComputePassEncoder.zig +++ b/gpu/src/ComputePassEncoder.zig @@ -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; } diff --git a/gpu/src/TODO b/gpu/src/TODO index 8347ca3c..d9b275ab 100644 --- a/gpu/src/TODO +++ b/gpu/src/TODO @@ -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;