gpu: implement Dawn commandEncoderClearBuffer
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
76a07123bf
commit
07b14bce82
1 changed files with 6 additions and 5 deletions
|
|
@ -187,11 +187,12 @@ pub const Interface = gpu.Interface(struct {
|
|||
}
|
||||
|
||||
pub inline fn commandEncoderClearBuffer(command_encoder: *gpu.CommandEncoder, buffer: *gpu.Buffer, offset: u64, size: u64) void {
|
||||
_ = command_encoder;
|
||||
_ = buffer;
|
||||
_ = offset;
|
||||
_ = size;
|
||||
unreachable;
|
||||
procs.commandEncoderClearBuffer.?(
|
||||
@ptrCast(c.WGPUCommandEncoder, command_encoder),
|
||||
@ptrCast(c.WGPUBuffer, buffer),
|
||||
offset,
|
||||
size,
|
||||
);
|
||||
}
|
||||
|
||||
pub inline fn commandEncoderCopyBufferToBuffer(command_encoder: *gpu.CommandEncoder, source: *gpu.Buffer, source_offset: u64, destination: *gpu.Buffer, destination_offset: u64, size: u64) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue