sdlSetGpuBlendConstants function gpu
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)
Implementation
void sdlSetGpuBlendConstants(
Pointer<SdlGpuRenderPass> renderPass,
SdlFColor blendAnts,
) {
final sdlSetGpuBlendConstantsLookupFunction = _libSdl
.lookupFunction<
Void Function(
Pointer<SdlGpuRenderPass> renderPass,
SdlFColor blendAnts,
),
void Function(Pointer<SdlGpuRenderPass> renderPass, SdlFColor blendAnts)
>('SDL_SetGPUBlendConstants');
return sdlSetGpuBlendConstantsLookupFunction(renderPass, blendAnts);
}