gpu: implement Dawn commandEncoderInjectValidationError
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b95552169e
commit
7023a42306
1 changed files with 8 additions and 6 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue