sdlBeginGpuCopyPass function

Pointer<SdlGpuCopyPass> sdlBeginGpuCopyPass(
  1. Pointer<SdlGpuCommandBuffer> commandBuffer
)

Begins a copy pass on a command buffer.

All operations related to copying to or from buffers or textures take place inside a copy pass. You must not begin another copy pass, or a render pass or compute pass before ending the copy pass.

\param command_buffer a command buffer. \returns a copy pass handle.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC SDL_GPUCopyPass *SDLCALL SDL_BeginGPUCopyPass( SDL_GPUCommandBuffer *command_buffer)

Implementation

Pointer<SdlGpuCopyPass> sdlBeginGpuCopyPass(
    Pointer<SdlGpuCommandBuffer> commandBuffer) {
  final sdlBeginGpuCopyPassLookupFunction = libSdl3.lookupFunction<
      Pointer<SdlGpuCopyPass> Function(
          Pointer<SdlGpuCommandBuffer> commandBuffer),
      Pointer<SdlGpuCopyPass> Function(
          Pointer<SdlGpuCommandBuffer> commandBuffer)>('SDL_BeginGPUCopyPass');
  return sdlBeginGpuCopyPassLookupFunction(commandBuffer);
}