Skip to content

TSdlGpuBlendOp

Specifies the operator to be used when pixels in a render target are blended with existing pixels in the texture.

The source color is the value written by the fragment shader. The destination color is the value currently existing in the texture.

Definition

Unit: Neslib.Sdl3.Gpu

type TSdlGpuBlendOp = (Invalid, Add, Subtract, ReverseSubtract, Min, Max)

See Also

Enumeration Values

Invalid = SDL_GPU_BLENDOP_INVALID


Add = SDL_GPU_BLENDOP_ADD

(Source * SourceFactor) + (Destination * DestinationFactor)


Subtract = SDL_GPU_BLENDOP_SUBTRACT

(Source * SourceFactor) - (Destination * DestinationFactor)


ReverseSubtract = SDL_GPU_BLENDOP_REVERSE_SUBTRACT

(Destination * DestinationFactor) - (Source * SourceFactor)


Min = SDL_GPU_BLENDOP_MIN

Min(Source, Destination)


Max = SDL_GPU_BLENDOP_MAX

Max(Source, Destination)