Class FragmentStage

java.lang.Object
icyllis.arc3d.granite.FragmentStage

@Immutable public class FragmentStage extends Object
Represents a substage of a fragment shader, providing custom shader code to the Arc3D shading pipeline. Managed by ShaderCodeSource.
  • Field Details

    • kError_BuiltinStageID

      public static final int kError_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_BuiltinStageID
      Builtin 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_ReqFlag
      Requirement flags.
      See Also:
    • kLocalCoords_ReqFlag

      public static final int kLocalCoords_ReqFlag
      Requirement flags.
      See Also:
    • kPriorStageOutput_ReqFlag

      public static final int kPriorStageOutput_ReqFlag
      Requirement flags.
      See Also:
    • kBlenderDstColor_ReqFlag

      public static final int kBlenderDstColor_ReqFlag
      Requirement flags.
      See Also:
    • kPrimitiveColor_ReqFlag

      public static final int kPrimitiveColor_ReqFlag
      See Also:
    • NO_FUNCTIONS

      public static final String[] NO_FUNCTIONS
    • NO_UNIFORMS

      public static final FragmentStage.Uniform[] NO_UNIFORMS
    • NO_SAMPLERS

      public static final FragmentStage.Sampler[] NO_SAMPLERS
    • mName

      public final String mName
    • mRequirementFlags

      public final int mRequirementFlags
    • mStaticFunctionName

      public final String mStaticFunctionName
    • mRequiredFunctions

      public final String[] mRequiredFunctions
    • mUniforms

      public final FragmentStage.Uniform[] mUniforms
    • mSamplers

      public final FragmentStage.Sampler[] mSamplers
    • mExpressionGenerator

      public final FragmentStage.GenerateExpression mExpressionGenerator
    • mNumChildren

      public final int mNumChildren
  • Constructor Details

  • Method Details

    • name

      @Nonnull public String name()
    • generateUniforms

      public void generateUniforms(UniformHandler uniformHandler, int stageIndex)