Package icyllis.arc3d.granite
Class FragmentStage
java.lang.Object
icyllis.arc3d.granite.FragmentStage
Represents a substage of a fragment shader, providing custom shader code to the
Arc3D shading pipeline. Managed by
ShaderCodeSource
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Emit assignment expression statement.static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Requirement flags.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
static final int
static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Requirement flags.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Requirement flags.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
static final int
Requirement flags.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.static final int
Builtin Code Snippet ID, most are from Skia Graphite.final String
final int
final String[]
final int
final FragmentStage.Sampler[]
final String
final FragmentStage.Uniform[]
static final String[]
static final FragmentStage.Sampler[]
static final FragmentStage.Uniform[]
-
Constructor Summary
ConstructorDescriptionFragmentStage
(String name, int requirementFlags, String staticFunctionName, String[] requiredFunctions, FragmentStage.Uniform[] uniforms, FragmentStage.Sampler[] samplers, FragmentStage.GenerateExpression expressionGenerator, int numChildren) -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateUniforms
(UniformHandler uniformHandler, int stageIndex) name()
-
Field Details
-
kError_BuiltinStageID
public static final int kError_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kPassthrough_BuiltinStageID
public static final int kPassthrough_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kSolidColorShader_BuiltinStageID
public static final int kSolidColorShader_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kRGBOpaquePaintColor_BuiltinStageID
public static final int kRGBOpaquePaintColor_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kAlphaOnlyPaintColor_BuiltinStageID
public static final int kAlphaOnlyPaintColor_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kLinearGradientShader4_BuiltinStageID
public static final int kLinearGradientShader4_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kLinearGradientShader8_BuiltinStageID
public static final int kLinearGradientShader8_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kRadialGradientShader4_BuiltinStageID
public static final int kRadialGradientShader4_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kRadialGradientShader8_BuiltinStageID
public static final int kRadialGradientShader8_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kAngularGradientShader4_BuiltinStageID
public static final int kAngularGradientShader4_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kAngularGradientShader8_BuiltinStageID
public static final int kAngularGradientShader8_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kLocalMatrixShader_BuiltinStageID
public static final int kLocalMatrixShader_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kImageShader_BuiltinStageID
public static final int kImageShader_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kCubicImageShader_BuiltinStageID
public static final int kCubicImageShader_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kHWImageShader_BuiltinStageID
public static final int kHWImageShader_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kDitherShader_BuiltinStageID
public static final int kDitherShader_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kColorSpaceXformColorFilter_BuiltinStageID
public static final int kColorSpaceXformColorFilter_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kBlend_BuiltinStageID
public static final int kBlend_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kBlendModeBlender_BuiltinStageID
public static final int kBlendModeBlender_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kPorterDuffBlender_BuiltinStageID
public static final int kPorterDuffBlender_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kPrimitiveColor_BuiltinStageID
public static final int kPrimitiveColor_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kCompose_BuiltinStageID
public static final int kCompose_BuiltinStageIDBuiltin Code Snippet ID, most are from Skia Graphite. Do not use these ID outside Granite Renderer.- See Also:
-
kFirstFixedBlend_BuiltinStageID
public static final int kFirstFixedBlend_BuiltinStageID- See Also:
-
kLastFixedBlend_BuiltinStageID
public static final int kLastFixedBlend_BuiltinStageID -
kLast_BuiltinStageID
public static final int kLast_BuiltinStageID -
kBuiltinStageIDCount
public static final int kBuiltinStageIDCount -
kNone_ReqFlag
public static final int kNone_ReqFlagRequirement flags.- See Also:
-
kLocalCoords_ReqFlag
public static final int kLocalCoords_ReqFlagRequirement flags.- See Also:
-
kPriorStageOutput_ReqFlag
public static final int kPriorStageOutput_ReqFlagRequirement flags.- See Also:
-
kBlenderDstColor_ReqFlag
public static final int kBlenderDstColor_ReqFlagRequirement flags.- See Also:
-
kPrimitiveColor_ReqFlag
public static final int kPrimitiveColor_ReqFlag- See Also:
-
NO_FUNCTIONS
-
NO_UNIFORMS
-
NO_SAMPLERS
-
mName
-
mRequirementFlags
public final int mRequirementFlags -
mStaticFunctionName
-
mRequiredFunctions
-
mUniforms
-
mSamplers
-
mExpressionGenerator
-
mNumChildren
public final int mNumChildren
-
-
Constructor Details
-
FragmentStage
public FragmentStage(String name, int requirementFlags, String staticFunctionName, String[] requiredFunctions, FragmentStage.Uniform[] uniforms, FragmentStage.Sampler[] samplers, FragmentStage.GenerateExpression expressionGenerator, int numChildren)
-
-
Method Details
-
name
-
generateUniforms
-