@@ -817,11 +817,11 @@ typedef struct WGPUBindGroupLayoutEntry {
817817 WGPUStorageTextureBindingLayout storageTexture ;
818818} WGPUBindGroupLayoutEntry ;
819819
820- typedef struct WGPUBufferCopyView {
820+ typedef struct WGPUImageCopyBuffer {
821821 WGPUChainedStruct const * nextInChain ;
822822 WGPUTextureDataLayout layout ;
823823 WGPUBuffer buffer ;
824- } WGPUBufferCopyView ;
824+ } WGPUImageCopyBuffer ;
825825
826826typedef struct WGPUColorStateDescriptor {
827827 WGPUChainedStruct const * nextInChain ;
@@ -857,13 +857,13 @@ typedef struct WGPURenderPassColorAttachmentDescriptor {
857857 WGPUColor clearColor ;
858858} WGPURenderPassColorAttachmentDescriptor ;
859859
860- typedef struct WGPUTextureCopyView {
860+ typedef struct WGPUImageCopyTexture {
861861 WGPUChainedStruct const * nextInChain ;
862862 WGPUTexture texture ;
863863 uint32_t mipLevel ;
864864 WGPUOrigin3D origin ;
865865 WGPUTextureAspect aspect ;
866- } WGPUTextureCopyView ;
866+ } WGPUImageCopyTexture ;
867867
868868typedef struct WGPUTextureDescriptor {
869869 WGPUChainedStruct const * nextInChain ;
@@ -923,6 +923,13 @@ typedef struct WGPURenderPipelineDescriptor {
923923 bool alphaToCoverageEnabled ;
924924} WGPURenderPipelineDescriptor ;
925925
926+ // WGPUBufferCopyView is deprecated.
927+ // Use WGPUImageCopyBuffer instead.
928+ typedef WGPUImageCopyBuffer WGPUBufferCopyView ;
929+
930+ // WGPUTextureCopyView is deprecated.
931+ // Use WGPUImageCopyTexture instead.
932+ typedef WGPUImageCopyTexture WGPUTextureCopyView ;
926933
927934#ifdef __cplusplus
928935extern "C" {
@@ -974,9 +981,9 @@ typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer);
974981typedef WGPUComputePassEncoder (* WGPUProcCommandEncoderBeginComputePass )(WGPUCommandEncoder commandEncoder , WGPUComputePassDescriptor const * descriptor );
975982typedef WGPURenderPassEncoder (* WGPUProcCommandEncoderBeginRenderPass )(WGPUCommandEncoder commandEncoder , WGPURenderPassDescriptor const * descriptor );
976983typedef void (* WGPUProcCommandEncoderCopyBufferToBuffer )(WGPUCommandEncoder commandEncoder , WGPUBuffer source , uint64_t sourceOffset , WGPUBuffer destination , uint64_t destinationOffset , uint64_t size );
977- typedef void (* WGPUProcCommandEncoderCopyBufferToTexture )(WGPUCommandEncoder commandEncoder , WGPUBufferCopyView const * source , WGPUTextureCopyView const * destination , WGPUExtent3D const * copySize );
978- typedef void (* WGPUProcCommandEncoderCopyTextureToBuffer )(WGPUCommandEncoder commandEncoder , WGPUTextureCopyView const * source , WGPUBufferCopyView const * destination , WGPUExtent3D const * copySize );
979- typedef void (* WGPUProcCommandEncoderCopyTextureToTexture )(WGPUCommandEncoder commandEncoder , WGPUTextureCopyView const * source , WGPUTextureCopyView const * destination , WGPUExtent3D const * copySize );
984+ typedef void (* WGPUProcCommandEncoderCopyBufferToTexture )(WGPUCommandEncoder commandEncoder , WGPUImageCopyBuffer const * source , WGPUImageCopyTexture const * destination , WGPUExtent3D const * copySize );
985+ typedef void (* WGPUProcCommandEncoderCopyTextureToBuffer )(WGPUCommandEncoder commandEncoder , WGPUImageCopyTexture const * source , WGPUImageCopyBuffer const * destination , WGPUExtent3D const * copySize );
986+ typedef void (* WGPUProcCommandEncoderCopyTextureToTexture )(WGPUCommandEncoder commandEncoder , WGPUImageCopyTexture const * source , WGPUImageCopyTexture const * destination , WGPUExtent3D const * copySize );
980987typedef WGPUCommandBuffer (* WGPUProcCommandEncoderFinish )(WGPUCommandEncoder commandEncoder , WGPUCommandBufferDescriptor const * descriptor );
981988typedef void (* WGPUProcCommandEncoderInsertDebugMarker )(WGPUCommandEncoder commandEncoder , char const * markerLabel );
982989typedef void (* WGPUProcCommandEncoderPopDebugGroup )(WGPUCommandEncoder commandEncoder );
@@ -1055,7 +1062,7 @@ typedef WGPUFence (*WGPUProcQueueCreateFence)(WGPUQueue queue, WGPUFenceDescript
10551062typedef void (* WGPUProcQueueSignal )(WGPUQueue queue , WGPUFence fence , uint64_t signalValue );
10561063typedef void (* WGPUProcQueueSubmit )(WGPUQueue queue , uint32_t commandCount , WGPUCommandBuffer const * commands );
10571064typedef void (* WGPUProcQueueWriteBuffer )(WGPUQueue queue , WGPUBuffer buffer , uint64_t bufferOffset , void const * data , size_t size );
1058- typedef void (* WGPUProcQueueWriteTexture )(WGPUQueue queue , WGPUTextureCopyView const * destination , void const * data , size_t dataSize , WGPUTextureDataLayout const * dataLayout , WGPUExtent3D const * writeSize );
1065+ typedef void (* WGPUProcQueueWriteTexture )(WGPUQueue queue , WGPUImageCopyTexture const * destination , void const * data , size_t dataSize , WGPUTextureDataLayout const * dataLayout , WGPUExtent3D const * writeSize );
10591066typedef void (* WGPUProcQueueReference )(WGPUQueue queue );
10601067typedef void (* WGPUProcQueueRelease )(WGPUQueue queue );
10611068
@@ -1175,9 +1182,9 @@ WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer);
11751182WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass (WGPUCommandEncoder commandEncoder , WGPUComputePassDescriptor const * descriptor );
11761183WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass (WGPUCommandEncoder commandEncoder , WGPURenderPassDescriptor const * descriptor );
11771184WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer (WGPUCommandEncoder commandEncoder , WGPUBuffer source , uint64_t sourceOffset , WGPUBuffer destination , uint64_t destinationOffset , uint64_t size );
1178- WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture (WGPUCommandEncoder commandEncoder , WGPUBufferCopyView const * source , WGPUTextureCopyView const * destination , WGPUExtent3D const * copySize );
1179- WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer (WGPUCommandEncoder commandEncoder , WGPUTextureCopyView const * source , WGPUBufferCopyView const * destination , WGPUExtent3D const * copySize );
1180- WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture (WGPUCommandEncoder commandEncoder , WGPUTextureCopyView const * source , WGPUTextureCopyView const * destination , WGPUExtent3D const * copySize );
1185+ WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture (WGPUCommandEncoder commandEncoder , WGPUImageCopyBuffer const * source , WGPUImageCopyTexture const * destination , WGPUExtent3D const * copySize );
1186+ WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer (WGPUCommandEncoder commandEncoder , WGPUImageCopyTexture const * source , WGPUImageCopyBuffer const * destination , WGPUExtent3D const * copySize );
1187+ WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture (WGPUCommandEncoder commandEncoder , WGPUImageCopyTexture const * source , WGPUImageCopyTexture const * destination , WGPUExtent3D const * copySize );
11811188WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish (WGPUCommandEncoder commandEncoder , WGPUCommandBufferDescriptor const * descriptor );
11821189WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker (WGPUCommandEncoder commandEncoder , char const * markerLabel );
11831190WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup (WGPUCommandEncoder commandEncoder );
@@ -1256,7 +1263,7 @@ WGPU_EXPORT WGPUFence wgpuQueueCreateFence(WGPUQueue queue, WGPUFenceDescriptor
12561263WGPU_EXPORT void wgpuQueueSignal (WGPUQueue queue , WGPUFence fence , uint64_t signalValue );
12571264WGPU_EXPORT void wgpuQueueSubmit (WGPUQueue queue , uint32_t commandCount , WGPUCommandBuffer const * commands );
12581265WGPU_EXPORT void wgpuQueueWriteBuffer (WGPUQueue queue , WGPUBuffer buffer , uint64_t bufferOffset , void const * data , size_t size );
1259- WGPU_EXPORT void wgpuQueueWriteTexture (WGPUQueue queue , WGPUTextureCopyView const * destination , void const * data , size_t dataSize , WGPUTextureDataLayout const * dataLayout , WGPUExtent3D const * writeSize );
1266+ WGPU_EXPORT void wgpuQueueWriteTexture (WGPUQueue queue , WGPUImageCopyTexture const * destination , void const * data , size_t dataSize , WGPUTextureDataLayout const * dataLayout , WGPUExtent3D const * writeSize );
12601267WGPU_EXPORT void wgpuQueueReference (WGPUQueue queue );
12611268WGPU_EXPORT void wgpuQueueRelease (WGPUQueue queue );
12621269
0 commit comments