Package icyllis.arc3d.engine
Class BlendInfo
java.lang.Object
icyllis.arc3d.engine.BlendInfo
BlendInfo is an immutable object holding info for setting-up GPU blend states.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final BlendInfo
static final byte
Basic blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Basic blend equations.static final byte
Advanced blend equations.static final byte
Advanced blend equations.static final byte
Basic blend equations.static final byte
Advanced blend equations (extended).static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
Blend factors.static final byte
static final byte
Blend factors.final boolean
final byte
final byte
final byte
-
Constructor Summary
ConstructorDescriptionBlendInfo
(byte equation, byte srcFactor, byte dstFactor, boolean colorWrite) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
blendCoeffRefsDst
(byte factor) static boolean
blendCoeffRefsSrc
(byte factor) static boolean
blendCoeffRefsSrc1
(byte factor) static boolean
blendCoeffsUseDstColor
(byte srcFactor, byte dstFactor, boolean srcColorIsOpaque) static boolean
blendCoeffsUseSrcColor
(byte srcFactor, byte dstFactor) static boolean
blendModifiesDst
(byte equation, byte srcFactor, byte dstFactor) boolean
static BlendInfo
getSimpleBlendInfo
(BlendMode mode) Returns the standard HW blend info for the given Porter Duff blend mode.
-
Field Details
-
FACTOR_ZERO
public static final byte FACTOR_ZEROBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE
public static final byte FACTOR_ONEBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_SRC_COLOR
public static final byte FACTOR_SRC_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_SRC_COLOR
public static final byte FACTOR_ONE_MINUS_SRC_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_DST_COLOR
public static final byte FACTOR_DST_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_DST_COLOR
public static final byte FACTOR_ONE_MINUS_DST_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_SRC_ALPHA
public static final byte FACTOR_SRC_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_SRC_ALPHA
public static final byte FACTOR_ONE_MINUS_SRC_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_DST_ALPHA
public static final byte FACTOR_DST_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_DST_ALPHA
public static final byte FACTOR_ONE_MINUS_DST_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_CONSTANT_COLOR
public static final byte FACTOR_CONSTANT_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_CONSTANT_COLOR
public static final byte FACTOR_ONE_MINUS_CONSTANT_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_CONSTANT_ALPHA
public static final byte FACTOR_CONSTANT_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_CONSTANT_ALPHA
public static final byte FACTOR_ONE_MINUS_CONSTANT_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_SRC_ALPHA_SATURATE
public static final byte FACTOR_SRC_ALPHA_SATURATEBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_SRC1_COLOR
public static final byte FACTOR_SRC1_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_SRC1_COLOR
public static final byte FACTOR_ONE_MINUS_SRC1_COLORBlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_SRC1_ALPHA
public static final byte FACTOR_SRC1_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_ONE_MINUS_SRC1_ALPHA
public static final byte FACTOR_ONE_MINUS_SRC1_ALPHABlend factors. Same in OpenGL and Vulkan.- See Also:
-
FACTOR_UNKNOWN
public static final byte FACTOR_UNKNOWN- See Also:
-
EQUATION_ADD
public static final byte EQUATION_ADDBasic blend equations.- See Also:
-
EQUATION_SUBTRACT
public static final byte EQUATION_SUBTRACTBasic blend equations.- See Also:
-
EQUATION_REVERSE_SUBTRACT
public static final byte EQUATION_REVERSE_SUBTRACTBasic blend equations.- See Also:
-
EQUATION_MULTIPLY
public static final byte EQUATION_MULTIPLYAdvanced blend equations.- See Also:
-
EQUATION_SCREEN
public static final byte EQUATION_SCREENAdvanced blend equations.- See Also:
-
EQUATION_OVERLAY
public static final byte EQUATION_OVERLAYAdvanced blend equations.- See Also:
-
EQUATION_DARKEN
public static final byte EQUATION_DARKENAdvanced blend equations.- See Also:
-
EQUATION_LIGHTEN
public static final byte EQUATION_LIGHTENAdvanced blend equations.- See Also:
-
EQUATION_COLORDODGE
public static final byte EQUATION_COLORDODGEAdvanced blend equations.- See Also:
-
EQUATION_COLORBURN
public static final byte EQUATION_COLORBURNAdvanced blend equations.- See Also:
-
EQUATION_HARDLIGHT
public static final byte EQUATION_HARDLIGHTAdvanced blend equations.- See Also:
-
EQUATION_SOFTLIGHT
public static final byte EQUATION_SOFTLIGHTAdvanced blend equations.- See Also:
-
EQUATION_DIFFERENCE
public static final byte EQUATION_DIFFERENCEAdvanced blend equations.- See Also:
-
EQUATION_EXCLUSION
public static final byte EQUATION_EXCLUSIONAdvanced blend equations.- See Also:
-
EQUATION_HSL_HUE
public static final byte EQUATION_HSL_HUEAdvanced blend equations.- See Also:
-
EQUATION_HSL_SATURATION
public static final byte EQUATION_HSL_SATURATIONAdvanced blend equations.- See Also:
-
EQUATION_HSL_COLOR
public static final byte EQUATION_HSL_COLORAdvanced blend equations.- See Also:
-
EQUATION_HSL_LUMINOSITY
public static final byte EQUATION_HSL_LUMINOSITYAdvanced blend equations.- See Also:
-
EQUATION_UNKNOWN
public static final byte EQUATION_UNKNOWNAdvanced blend equations (extended).- See Also:
-
mEquation
public final byte mEquation -
mSrcFactor
public final byte mSrcFactor -
mDstFactor
public final byte mDstFactor -
mColorWrite
public final boolean mColorWrite -
BLEND_CLEAR
-
BLEND_SRC
-
BLEND_DST
-
BLEND_SRC_OVER
-
BLEND_DST_OVER
-
BLEND_SRC_IN
-
BLEND_DST_IN
-
BLEND_SRC_OUT
-
BLEND_DST_OUT
-
BLEND_SRC_ATOP
-
BLEND_DST_ATOP
-
BLEND_XOR
-
BLEND_PLUS
-
BLEND_MINUS
-
BLEND_MODULATE
-
BLEND_SCREEN
-
-
Constructor Details
-
BlendInfo
public BlendInfo(byte equation, byte srcFactor, byte dstFactor, boolean colorWrite)
-
-
Method Details
-
blendShouldDisable
public boolean blendShouldDisable() -
blendCoeffRefsSrc
public static boolean blendCoeffRefsSrc(byte factor) -
blendCoeffRefsDst
public static boolean blendCoeffRefsDst(byte factor) -
blendCoeffRefsSrc1
public static boolean blendCoeffRefsSrc1(byte factor) -
blendCoeffsUseSrcColor
public static boolean blendCoeffsUseSrcColor(byte srcFactor, byte dstFactor) -
blendCoeffsUseDstColor
public static boolean blendCoeffsUseDstColor(byte srcFactor, byte dstFactor, boolean srcColorIsOpaque) -
blendModifiesDst
public static boolean blendModifiesDst(byte equation, byte srcFactor, byte dstFactor) -
getSimpleBlendInfo
Returns the standard HW blend info for the given Porter Duff blend mode.
-