sdlxSetGpuBlendConstants function gpu

void sdlxSetGpuBlendConstants(
  1. Pointer<SdlGpuRenderPass> renderPass,
  2. SdlxFColor blendAnts
)

Sets the current blend constants on a command buffer.

\param render_pass a render pass handle. \param blend_constants the blend constant color.

\since This function is available since SDL 3.2.0.

\sa SDL_GPU_BLENDFACTOR_CONSTANT_COLOR \sa SDL_GPU_BLENDFACTOR_ONE_MINUS_CONSTANT_COLOR

extern SDL_DECLSPEC void SDLCALL SDL_SetGPUBlendConstants( SDL_GPURenderPass *render_pass, SDL_FColor blend_constants)

See also:

Implementation

void sdlxSetGpuBlendConstants(
  Pointer<SdlGpuRenderPass> renderPass,
  SdlxFColor blendAnts,
) {
  final pointer = blendAnts.calloc();
  sdlSetGpuBlendConstants(renderPass, pointer.ref);
  pointer.callocFree();
}