gpu: implement CommandEncoder.copyTextureToBuffer
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
53856bb9f8
commit
de9cc72c47
2 changed files with 26 additions and 2 deletions
|
|
@ -1654,6 +1654,21 @@ const command_encoder_vtable = CommandEncoder.VTable{
|
|||
);
|
||||
}
|
||||
}).copyBufferToTexture,
|
||||
.copyTextureToBuffer = (struct {
|
||||
pub fn copyTextureToBuffer(
|
||||
ptr: *anyopaque,
|
||||
source: *const ImageCopyTexture,
|
||||
destination: *const ImageCopyBuffer,
|
||||
copy_size: *const Extent3D,
|
||||
) void {
|
||||
c.wgpuCommandEncoderCopyTextureToBuffer(
|
||||
@ptrCast(c.WGPUCommandEncoder, ptr),
|
||||
&convertImageCopyTexture(source),
|
||||
&convertImageCopyBuffer(destination),
|
||||
@ptrCast(*const c.WGPUExtent3D, copy_size),
|
||||
);
|
||||
}
|
||||
}).copyTextureToBuffer,
|
||||
.popDebugGroup = (struct {
|
||||
pub fn popDebugGroup(ptr: *anyopaque) void {
|
||||
c.wgpuCommandEncoderPopDebugGroup(@ptrCast(c.WGPUCommandEncoder, ptr));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue