Interface ShaderUniformAccess
- All Known Subinterfaces:
ShaderUniform
- All Known Implementing Classes:
CompositeShaderUniformAccess,EmptyShaderUniformAccess,ShaderUniformImpl
public interface ShaderUniformAccess
Provides access to 1 or more shader uniforms.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid()static ShaderUniformAccessof(ShaderUniformAccess... accesses) Creates a composite shader uniform access.voidset64Vectors(org.joml.Vector2dc... values) Sets an array of double vectors in the shader.voidset64Vectors(org.joml.Vector3dc... values) Sets an array of double vectors in the shader.voidset64Vectors(org.joml.Vector4dc... values) Sets an array of double vectors in the shader.voidsetDouble(double value) Sets a double in the shader.voidsetDoubles(double... values) Sets an array of doubles in the shader.voidsetFloat(float value) Sets a float in the shader.voidsetFloats(float... values) Sets an array of floats in the shader.voidsetHandle(long value) Uploads this uniform as a handle type.voidsetHandles(long... values) Uploads this uniform as a handle type.voidsetInt(int value) Sets an integer in the shader.voidsetInts(int... values) Sets an array of integers in the shader.voidsetIVectors(org.joml.Vector2ic... values) Sets an array of integer vectors in the shader.voidsetIVectors(org.joml.Vector3ic... values) Sets an array of integer vectors in the shader.voidsetIVectors(org.joml.Vector4ic... values) Sets an array of integer vectors in the shader.voidsetLong(long value) Sets a long in the shader.voidsetLongs(long... values) Sets an array of longs in the shader.default voidsetMatrix(org.joml.Matrix2dc value) Sets a matrix in the shader.voidsetMatrix(org.joml.Matrix2dc value, boolean transpose) Sets a double matrix in the shader.default voidsetMatrix(org.joml.Matrix2fc value) Sets a matrix in the shader.voidsetMatrix(org.joml.Matrix2fc value, boolean transpose) Sets a matrix in the shader.default voidsetMatrix(org.joml.Matrix3dc value) Sets a double matrix in the shader.voidsetMatrix(org.joml.Matrix3dc value, boolean transpose) Sets a double matrix in the shader.default voidsetMatrix(org.joml.Matrix3fc value) Sets a matrix in the shader.voidsetMatrix(org.joml.Matrix3fc value, boolean transpose) Sets a matrix in the shader.default voidsetMatrix(org.joml.Matrix4dc value) Sets a double matrix in the shader.voidsetMatrix(org.joml.Matrix4dc value, boolean transpose) Sets a double matrix in the shader.default voidsetMatrix(org.joml.Matrix4fc value) Sets a matrix in the shader.voidsetMatrix(org.joml.Matrix4fc value, boolean transpose) Sets a matrix in the shader.default voidsetMatrix2x3(org.joml.Matrix3x2dc value) Sets a double matrix in the shader.voidsetMatrix2x3(org.joml.Matrix3x2dc value, boolean transpose) Sets a double matrix in the shader.default voidsetMatrix2x3(org.joml.Matrix3x2fc value) Sets a matrix in the shader.voidsetMatrix2x3(org.joml.Matrix3x2fc value, boolean transpose) Sets a matrix in the shader.default voidsetMatrix3x2(org.joml.Matrix3x2dc value) Sets a double matrix in the shader.voidsetMatrix3x2(org.joml.Matrix3x2dc value, boolean transpose) Sets a double matrix in the shader.default voidsetMatrix3x2(org.joml.Matrix3x2fc value) Sets a matrix in the shader.voidsetMatrix3x2(org.joml.Matrix3x2fc value, boolean transpose) Sets a matrix in the shader.default voidsetMatrix3x4(org.joml.Matrix4x3dc value) Sets a double matrix in the shader.voidsetMatrix3x4(org.joml.Matrix4x3dc value, boolean transpose) Sets a double matrix in the shader.default voidsetMatrix3x4(org.joml.Matrix4x3fc value) Sets a matrix in the shader.voidsetMatrix3x4(org.joml.Matrix4x3fc value, boolean transpose) Sets a matrix in the shader.default voidsetMatrix4x3(org.joml.Matrix4x3dc value) Sets a double matrix in the shader.voidsetMatrix4x3(org.joml.Matrix4x3dc value, boolean transpose) Sets a double matrix in the shader.default voidsetMatrix4x3(org.joml.Matrix4x3fc value) Sets a matrix in the shader.voidsetMatrix4x3(org.joml.Matrix4x3fc value, boolean transpose) Sets a matrix in the shader.default voidsetVector(float[] values) Sets a vector in the shader.voidsetVector(float x, float y) Sets a vector in the shader.voidsetVector(float x, float y, float z) Sets a vector in the shader.voidsetVector(float x, float y, float z, float w) Sets a vector in the shader.default voidsetVector(org.joml.Vector2fc value) Sets a vector in the shader.default voidsetVector(org.joml.Vector3fc value) Sets a vector in the shader.default voidsetVector(org.joml.Vector4fc value) Sets a vector in the shader.default voidsetVector64(double[] values) Sets a double vector in the shader.voidsetVector64(double x, double y) Sets a double vector in the shader.voidsetVector64(double x, double y, double z) Sets a double vector in the shader.voidsetVector64(double x, double y, double z, double w) Sets a double vector in the shader.default voidsetVector64(org.joml.Vector2dc value) Sets a double vector in the shader.default voidsetVector64(org.joml.Vector3dc value) Sets a double vector in the shader.default voidsetVector64(org.joml.Vector4dc value) Sets a double vector in the shader.default voidsetVectorI(int[] values) Sets an integer vector in the shader.voidsetVectorI(int x, int y) Sets an integer vector in the shader.voidsetVectorI(int x, int y, int z) Sets an integer vector in the shader.voidsetVectorI(int x, int y, int z, int w) Sets an integer vector in the shader.default voidsetVectorI(org.joml.Vector2ic value) Sets an integer vector in the shader.default voidsetVectorI(org.joml.Vector3ic value) Sets an integer vector in the shader.default voidsetVectorI(org.joml.Vector4ic value) Sets an integer vector in the shader.default voidsetVectorI64(long[] values) Sets a long vector in the shader.voidsetVectorI64(long x, long y) Sets a long vector in the shader.voidsetVectorI64(long x, long y, long z) Sets a long vector in the shader.voidsetVectorI64(long x, long y, long z, long w) Sets a long vector in the shader.voidsetVectors(org.joml.Vector2fc... values) Sets an array of vectors in the shader.voidsetVectors(org.joml.Vector3fc... values) Sets an array of vectors in the shader.voidsetVectors(org.joml.Vector4fc... values) Sets an array of vectors in the shader.
-
Field Details
-
EMPTY
NO-OP Uniform Access
-
-
Method Details
-
of
Creates a composite shader uniform access.- Parameters:
accesses- The uniforms to merge together- Returns:
- A new
ShaderUniformAccessthat sets values in the provided access
-
isValid
boolean isValid()- Returns:
- Whether this uniform is valid
-
setFloat
void setFloat(float value) Sets a float in the shader.- Parameters:
value- The value to set
-
setVector
void setVector(float x, float y) Sets a vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVector
void setVector(float x, float y, float z) Sets a vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVector
void setVector(float x, float y, float z, float w) Sets a vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setVector
default void setVector(org.joml.Vector2fc value) Sets a vector in the shader.- Parameters:
value- The value to set
-
setVector
default void setVector(org.joml.Vector3fc value) Sets a vector in the shader.- Parameters:
value- The value to set
-
setVector
default void setVector(org.joml.Vector4fc value) Sets a vector in the shader.- Parameters:
value- The value to set
-
setVector
default void setVector(float[] values) Sets a vector in the shader.- Parameters:
values- The values to set- Throws:
UnsupportedOperationException- If the array passed in is empty
-
setInt
void setInt(int value) Sets an integer in the shader.- Parameters:
value- The value to set
-
setVectorI
void setVectorI(int x, int y) Sets an integer vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVectorI
void setVectorI(int x, int y, int z) Sets an integer vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVectorI
void setVectorI(int x, int y, int z, int w) Sets an integer vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setVectorI
default void setVectorI(org.joml.Vector2ic value) Sets an integer vector in the shader.- Parameters:
value- The value to set
-
setVectorI
default void setVectorI(org.joml.Vector3ic value) Sets an integer vector in the shader.- Parameters:
value- The value to set
-
setVectorI
default void setVectorI(org.joml.Vector4ic value) Sets an integer vector in the shader.- Parameters:
value- The value to set
-
setVectorI
default void setVectorI(int[] values) Sets an integer vector in the shader.- Parameters:
values- The values to set- Throws:
UnsupportedOperationException- If the array passed in is empty
-
setDouble
void setDouble(double value) Sets a double in the shader.- Parameters:
value- The value to set
-
setVector64
void setVector64(double x, double y) Sets a double vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVector64
void setVector64(double x, double y, double z) Sets a double vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVector64
void setVector64(double x, double y, double z, double w) Sets a double vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setVector64
default void setVector64(org.joml.Vector2dc value) Sets a double vector in the shader.- Parameters:
value- The value to set
-
setVector64
default void setVector64(org.joml.Vector3dc value) Sets a double vector in the shader.- Parameters:
value- The value to set
-
setVector64
default void setVector64(org.joml.Vector4dc value) Sets a double vector in the shader.- Parameters:
value- The value to set
-
setVector64
default void setVector64(double[] values) Sets a double vector in the shader.- Parameters:
values- The values to set- Throws:
UnsupportedOperationException- If the array passed in is empty
-
setLong
void setLong(long value) Sets a long in the shader.- Parameters:
value- The value to set
-
setVectorI64
void setVectorI64(long x, long y) Sets a long vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVectorI64
void setVectorI64(long x, long y, long z) Sets a long vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVectorI64
void setVectorI64(long x, long y, long z, long w) Sets a long vector in the shader.- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setVectorI64
default void setVectorI64(long[] values) Sets a long vector in the shader.- Parameters:
values- The values to set- Throws:
UnsupportedOperationException- If the array passed in is empty
-
setFloats
void setFloats(float... values) Sets an array of floats in the shader.- Parameters:
values- The values to set in order
-
setVectors
void setVectors(org.joml.Vector2fc... values) Sets an array of vectors in the shader.- Parameters:
values- The values to set in order
-
setVectors
void setVectors(org.joml.Vector3fc... values) Sets an array of vectors in the shader.- Parameters:
values- The values to set in order
-
setVectors
void setVectors(org.joml.Vector4fc... values) Sets an array of vectors in the shader.- Parameters:
values- The values to set in order
-
setInts
void setInts(int... values) Sets an array of integers in the shader.- Parameters:
values- The values to set in order
-
setIVectors
void setIVectors(org.joml.Vector2ic... values) Sets an array of integer vectors in the shader.- Parameters:
values- The values to set in order
-
setIVectors
void setIVectors(org.joml.Vector3ic... values) Sets an array of integer vectors in the shader.- Parameters:
values- The values to set in order
-
setIVectors
void setIVectors(org.joml.Vector4ic... values) Sets an array of integer vectors in the shader.- Parameters:
values- The values to set in order
-
setDoubles
void setDoubles(double... values) Sets an array of doubles in the shader.- Parameters:
values- The values to set in order
-
set64Vectors
void set64Vectors(org.joml.Vector2dc... values) Sets an array of double vectors in the shader.- Parameters:
values- The values to set in order
-
set64Vectors
void set64Vectors(org.joml.Vector3dc... values) Sets an array of double vectors in the shader.- Parameters:
values- The values to set in order
-
set64Vectors
void set64Vectors(org.joml.Vector4dc... values) Sets an array of double vectors in the shader.- Parameters:
values- The values to set in order
-
setLongs
void setLongs(long... values) Sets an array of longs in the shader.- Parameters:
values- The values to set in order
-
setHandle
void setHandle(long value) Uploads this uniform as a handle type. Only supported if bindless texture is supported.- Parameters:
value- The handle to upload- Since:
- 2.0.0
-
setHandles
void setHandles(long... values) Uploads this uniform as a handle type. Only supported if bindless texture is supported.- Parameters:
values- The handles to upload- Since:
- 2.0.0
-
setMatrix
default void setMatrix(org.joml.Matrix2fc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
default void setMatrix(org.joml.Matrix3fc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
default void setMatrix(org.joml.Matrix4fc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix2x3
default void setMatrix2x3(org.joml.Matrix3x2fc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x2
default void setMatrix3x2(org.joml.Matrix3x2fc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x4
default void setMatrix3x4(org.joml.Matrix4x3fc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix4x3
default void setMatrix4x3(org.joml.Matrix4x3fc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
void setMatrix(org.joml.Matrix2fc value, boolean transpose) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
void setMatrix(org.joml.Matrix3fc value, boolean transpose) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
void setMatrix(org.joml.Matrix4fc value, boolean transpose) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix2x3
void setMatrix2x3(org.joml.Matrix3x2fc value, boolean transpose) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x2
void setMatrix3x2(org.joml.Matrix3x2fc value, boolean transpose) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x4
void setMatrix3x4(org.joml.Matrix4x3fc value, boolean transpose) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix4x3
void setMatrix4x3(org.joml.Matrix4x3fc value, boolean transpose) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
default void setMatrix(org.joml.Matrix2dc value) Sets a matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
default void setMatrix(org.joml.Matrix3dc value) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
default void setMatrix(org.joml.Matrix4dc value) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix2x3
default void setMatrix2x3(org.joml.Matrix3x2dc value) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x2
default void setMatrix3x2(org.joml.Matrix3x2dc value) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x4
default void setMatrix3x4(org.joml.Matrix4x3dc value) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix4x3
default void setMatrix4x3(org.joml.Matrix4x3dc value) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
void setMatrix(org.joml.Matrix2dc value, boolean transpose) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
void setMatrix(org.joml.Matrix3dc value, boolean transpose) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix
void setMatrix(org.joml.Matrix4dc value, boolean transpose) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix2x3
void setMatrix2x3(org.joml.Matrix3x2dc value, boolean transpose) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x2
void setMatrix3x2(org.joml.Matrix3x2dc value, boolean transpose) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix3x4
void setMatrix3x4(org.joml.Matrix4x3dc value, boolean transpose) Sets a double matrix in the shader.- Parameters:
value- The value to set
-
setMatrix4x3
void setMatrix4x3(org.joml.Matrix4x3dc value, boolean transpose) Sets a double matrix in the shader.- Parameters:
value- The value to set
-