Interface UniformAccess

All Known Subinterfaces:
MutableShaderUniformAccess, PostPipeline, ShaderProgram
All Known Implementing Classes:
BlitPostStage, CompositePostPipeline, CopyPostStage, FramebufferPostStage, MaskPostStage, ShaderProgramImpl

public interface UniformAccess
Provides write access to all uniform variables in a shader program.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    setFloat(CharSequence name, float value)
    Sets a float in the shader.
    default void
    setFloats(CharSequence name, float... values)
    Sets an array of floats in the shader.
    default void
    setInt(CharSequence name, int value)
    Sets an integer in the shader.
    default void
    setInts(CharSequence name, int... values)
    Sets an array of integers in the shader.
    default void
    setMatrix(CharSequence name, org.joml.Matrix2fc value)
    Sets a matrix in the shader.
    default void
    setMatrix(CharSequence name, org.joml.Matrix3fc value)
    Sets a matrix in the shader.
    default void
    setMatrix(CharSequence name, org.joml.Matrix3x2fc value)
    Sets a matrix in the shader.
    default void
    setMatrix(CharSequence name, org.joml.Matrix4fc value)
    Sets a matrix in the shader.
    default void
    setMatrix(CharSequence name, org.joml.Matrix4x3fc value)
    Sets a matrix in the shader.
    default void
    setUniformBlock(CharSequence name, int binding)
    Sets the binding to use for the specified uniform block.
    default void
    setVector(CharSequence name, float x, float y)
    Sets a vector in the shader.
    default void
    setVector(CharSequence name, float x, float y, float z)
    Sets a vector in the shader.
    default void
    setVector(CharSequence name, float x, float y, float z, float w)
    Sets a vector in the shader.
    default void
    setVector(CharSequence name, org.joml.Vector2fc value)
    Sets a vector in the shader.
    default void
    setVector(CharSequence name, org.joml.Vector3fc value)
    Sets a vector in the shader.
    default void
    setVector(CharSequence name, org.joml.Vector4fc value)
    Sets a vector in the shader.
    default void
    setVectorI(CharSequence name, int x, int y)
    Sets an integer vector in the shader.
    default void
    setVectorI(CharSequence name, int x, int y, int z)
    Sets an integer vector in the shader.
    default void
    setVectorI(CharSequence name, int x, int y, int z, int w)
    Sets an integer vector in the shader.
    default void
    setVectorI(CharSequence name, org.joml.Vector2ic value)
    Sets an integer vector in the shader.
    default void
    setVectorI(CharSequence name, org.joml.Vector3ic value)
    Sets an integer vector in the shader.
    default void
    setVectorI(CharSequence name, org.joml.Vector4ic value)
    Sets an integer vector in the shader.
    default void
    setVectors(CharSequence name, org.joml.Vector2fc... values)
    Sets an array of vectors in the shader.
    default void
    setVectors(CharSequence name, org.joml.Vector2ic... values)
    Sets an array of integer vectors in the shader.
    default void
    setVectors(CharSequence name, org.joml.Vector3fc... values)
    Sets an array of vectors in the shader.
    default void
    setVectors(CharSequence name, org.joml.Vector3ic... values)
    Sets an array of integer vectors in the shader.
    default void
    setVectors(CharSequence name, org.joml.Vector4fc... values)
    Sets an array of vectors in the shader.
    default void
    setVectors(CharSequence name, org.joml.Vector4ic... values)
    Sets an array of integer vectors in the shader.
  • Method Details

    • setUniformBlock

      default void setUniformBlock(CharSequence name, int binding)
      Sets the binding to use for the specified uniform block.
      Parameters:
      name - The name of the block to set
      binding - The binding to use for that block
    • setFloat

      default void setFloat(CharSequence name, float value)
      Sets a float in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setVector

      default void setVector(CharSequence name, float x, float y)
      Sets a vector in the shader.
      Parameters:
      name - The name of the uniform to set
      x - The x component of the vector
      y - The y component of the vector
    • setVector

      default void setVector(CharSequence name, float x, float y, float z)
      Sets a vector in the shader.
      Parameters:
      name - The name of the uniform to set
      x - The x component of the vector
      y - The y component of the vector
      z - The z component of the vector
    • setVector

      default void setVector(CharSequence name, float x, float y, float z, float w)
      Sets a vector in the shader.
      Parameters:
      name - The name of the uniform to set
      x - The x component of the vector
      y - The y component of the vector
      z - The z component of the vector
      w - The w component of the vector
    • setVector

      default void setVector(CharSequence name, org.joml.Vector2fc value)
      Sets a vector in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setVector

      default void setVector(CharSequence name, org.joml.Vector3fc value)
      Sets a vector in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setVector

      default void setVector(CharSequence name, org.joml.Vector4fc value)
      Sets a vector in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setInt

      default void setInt(CharSequence name, int value)
      Sets an integer in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setVectorI

      default void setVectorI(CharSequence name, int x, int y)
      Sets an integer vector in the shader.
      Parameters:
      name - The name of the uniform to set
      x - The x component of the vector
      y - The y component of the vector
    • setVectorI

      default void setVectorI(CharSequence name, int x, int y, int z)
      Sets an integer vector in the shader.
      Parameters:
      name - The name of the uniform to set
      x - The x component of the vector
      y - The y component of the vector
      z - The z component of the vector
    • setVectorI

      default void setVectorI(CharSequence name, int x, int y, int z, int w)
      Sets an integer vector in the shader.
      Parameters:
      name - The name of the uniform to set
      x - The x component of the vector
      y - The y component of the vector
      z - The z component of the vector
      w - The w component of the vector
    • setVectorI

      default void setVectorI(CharSequence name, org.joml.Vector2ic value)
      Sets an integer vector in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setVectorI

      default void setVectorI(CharSequence name, org.joml.Vector3ic value)
      Sets an integer vector in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setVectorI

      default void setVectorI(CharSequence name, org.joml.Vector4ic value)
      Sets an integer vector in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setFloats

      default void setFloats(CharSequence name, float... values)
      Sets an array of floats in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setVectors

      default void setVectors(CharSequence name, org.joml.Vector2fc... values)
      Sets an array of vectors in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setVectors

      default void setVectors(CharSequence name, org.joml.Vector3fc... values)
      Sets an array of vectors in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setVectors

      default void setVectors(CharSequence name, org.joml.Vector4fc... values)
      Sets an array of vectors in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setInts

      default void setInts(CharSequence name, int... values)
      Sets an array of integers in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setVectors

      default void setVectors(CharSequence name, org.joml.Vector2ic... values)
      Sets an array of integer vectors in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setVectors

      default void setVectors(CharSequence name, org.joml.Vector3ic... values)
      Sets an array of integer vectors in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setVectors

      default void setVectors(CharSequence name, org.joml.Vector4ic... values)
      Sets an array of integer vectors in the shader.
      Parameters:
      name - The name of the uniform to set
      values - The values to set in order
    • setMatrix

      default void setMatrix(CharSequence name, org.joml.Matrix2fc value)
      Sets a matrix in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setMatrix

      default void setMatrix(CharSequence name, org.joml.Matrix3fc value)
      Sets a matrix in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setMatrix

      default void setMatrix(CharSequence name, org.joml.Matrix3x2fc value)
      Sets a matrix in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setMatrix

      default void setMatrix(CharSequence name, org.joml.Matrix4fc value)
      Sets a matrix in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set
    • setMatrix

      default void setMatrix(CharSequence name, org.joml.Matrix4x3fc value)
      Sets a matrix in the shader.
      Parameters:
      name - The name of the uniform to set
      value - The value to set