gpu: implement Dawn commandEncoderInjectValidationError

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 16:59:58 -07:00 committed by Stephen Gutekanst
parent b95552169e
commit 7023a42306

View file

@ -234,15 +234,17 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn commandEncoderFinish(command_encoder: *gpu.CommandEncoder, descriptor: ?*const gpu.CommandBuffer.Descriptor) *gpu.CommandBuffer { pub inline fn commandEncoderFinish(command_encoder: *gpu.CommandEncoder, descriptor: ?*const gpu.CommandBuffer.Descriptor) *gpu.CommandBuffer {
_ = command_encoder; return @ptrCast(*gpu.CommandBuffer, procs.commandEncoderFinish.?(
_ = descriptor; @ptrCast(c.WGPUCommandEncoder, command_encoder),
unreachable; @ptrCast(?*const c.WGPUCommandBufferDescriptor, descriptor),
));
} }
pub inline fn commandEncoderInjectValidationError(command_encoder: *gpu.CommandEncoder, message: [*:0]const u8) void { pub inline fn commandEncoderInjectValidationError(command_encoder: *gpu.CommandEncoder, message: [*:0]const u8) void {
_ = command_encoder; procs.commandEncoderInjectValidationError.?(
_ = message; @ptrCast(c.WGPUCommandEncoder, command_encoder),
unreachable; message,
);
} }
pub inline fn commandEncoderInsertDebugMarker(command_encoder: *gpu.CommandEncoder, marker_label: [*:0]const u8) void { pub inline fn commandEncoderInsertDebugMarker(command_encoder: *gpu.CommandEncoder, marker_label: [*:0]const u8) void {