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