Module fermium::blendmode[][src]

Expand description

Support module for pixel blending.

Structs

A newtype’d blend factor value.

A newtype’d blend operation value.

A newtype’d blend operation value.

Constants

RGBA: dstA, dstA, dstA, dstA

RGBA: dstR, dstG, dstB, dstA

RGBA: 1, 1, 1, 1

RGBA: 1-dstA, 1-dstA, 1-dstA, 1-dstA

RGBA: 1-dstR, 1-dstG, 1-dstB, 1-dstA

RGBA: 1-srcA, 1-srcA, 1-srcA, 1-srcA

RGBA: 1-srcR, 1-srcG, 1-srcB, 1-srcA

RGBA: srcA, srcA, srcA, srcA

RGBA: srcR, srcG, srcB, srcA

RGBA: 0, 0, 0, 0

additive blending

alpha blending

Sentinel for an invalid blend mode.

color modulate

color multiply

no blending

Op: dst + src: supported by all renderers

Op: max(dst, src) : supported by D3D11

Op: min(dst, src) : supported by D3D11

Op: src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES

Op: dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES

Functions

Create a custom blend mode, which may or may not be supported by a given renderer