gpu: implement Dawn commandEncoderCopyBufferToTexture
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f4fbf08a0f
commit
5f60ba7902
1 changed files with 12 additions and 10 deletions
|
|
@ -207,19 +207,21 @@ pub const Interface = gpu.Interface(struct {
|
|||
}
|
||||
|
||||
pub inline fn commandEncoderCopyBufferToTexture(command_encoder: *gpu.CommandEncoder, source: *const gpu.ImageCopyBuffer, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D) void {
|
||||
_ = command_encoder;
|
||||
_ = source;
|
||||
_ = destination;
|
||||
_ = copy_size;
|
||||
unreachable;
|
||||
procs.commandEncoderCopyBufferToTexture.?(
|
||||
@ptrCast(c.WGPUCommandEncoder, command_encoder),
|
||||
@ptrCast(*const c.WGPUImageCopyBuffer, source),
|
||||
@ptrCast(*const c.WGPUImageCopyTexture, destination),
|
||||
@ptrCast(*const c.WGPUExtent3D, copy_size),
|
||||
);
|
||||
}
|
||||
|
||||
pub inline fn commandEncoderCopyTextureToBuffer(command_encoder: *gpu.CommandEncoder, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyBuffer, copy_size: *const gpu.Extent3D) void {
|
||||
_ = command_encoder;
|
||||
_ = source;
|
||||
_ = destination;
|
||||
_ = copy_size;
|
||||
unreachable;
|
||||
procs.commandEncoderCopyTextureToBuffer.?(
|
||||
@ptrCast(c.WGPUCommandEncoder, command_encoder),
|
||||
@ptrCast(*const c.WGPUImageCopyTexture, source),
|
||||
@ptrCast(*const c.WGPUImageCopyBuffer, destination),
|
||||
@ptrCast(*const c.WGPUExtent3D, copy_size),
|
||||
);
|
||||
}
|
||||
|
||||
pub inline fn commandEncoderCopyTextureToTexture(command_encoder: *gpu.CommandEncoder, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue