Record Class CompositeShaderUniformAccess
java.lang.Object
java.lang.Record
foundry.veil.impl.client.render.shader.uniform.CompositeShaderUniformAccess
- All Implemented Interfaces:
ShaderUniformAccess
@Internal
public record CompositeShaderUniformAccess(ShaderUniformAccess[] accesses)
extends Record
implements ShaderUniformAccess
-
Field Summary
Fields inherited from interface foundry.veil.api.client.render.shader.uniform.ShaderUniformAccess
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionCompositeShaderUniformAccess(ShaderUniformAccess... accesses) Creates an instance of aCompositeShaderUniformAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccesses()Returns the value of theaccessesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisValid()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.voidsetMatrix(org.joml.Matrix2dc value, boolean transpose) Sets a double matrix in the shader.voidsetMatrix(org.joml.Matrix2fc value, boolean transpose) Sets a matrix in the shader.voidsetMatrix(org.joml.Matrix3dc value, boolean transpose) Sets a double matrix in the shader.voidsetMatrix(org.joml.Matrix3fc value, boolean transpose) Sets a matrix in the shader.voidsetMatrix(org.joml.Matrix4dc value, boolean transpose) Sets a double matrix in the shader.voidsetMatrix(org.joml.Matrix4fc value, boolean transpose) Sets a matrix in the shader.voidsetMatrix2x3(org.joml.Matrix3x2dc value, boolean transpose) Sets a double matrix in the shader.voidsetMatrix2x3(org.joml.Matrix3x2fc value, boolean transpose) Sets a matrix in the shader.voidsetMatrix3x2(org.joml.Matrix3x2dc value, boolean transpose) Sets a double matrix in the shader.voidsetMatrix3x2(org.joml.Matrix3x2fc value, boolean transpose) Sets a matrix in the shader.voidsetMatrix3x4(org.joml.Matrix4x3dc value, boolean transpose) Sets a double matrix in the shader.voidsetMatrix3x4(org.joml.Matrix4x3fc value, boolean transpose) Sets a matrix in the shader.voidsetMatrix4x3(org.joml.Matrix4x3dc value, boolean transpose) Sets a double matrix in the shader.voidsetMatrix4x3(org.joml.Matrix4x3fc value, boolean transpose) Sets a matrix 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.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.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.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.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface foundry.veil.api.client.render.shader.uniform.ShaderUniformAccess
setMatrix, setMatrix, setMatrix, setMatrix, setMatrix, setMatrix, setMatrix2x3, setMatrix2x3, setMatrix3x2, setMatrix3x2, setMatrix3x4, setMatrix3x4, setMatrix4x3, setMatrix4x3, setVector, setVector, setVector, setVector, setVector64, setVector64, setVector64, setVector64, setVectorI, setVectorI, setVectorI, setVectorI, setVectorI64
-
Constructor Details
-
CompositeShaderUniformAccess
Creates an instance of aCompositeShaderUniformAccessrecord class.- Parameters:
accesses- the value for theaccessesrecord component
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceShaderUniformAccess- Returns:
- Whether this uniform is valid
-
setFloat
public void setFloat(float value) Description copied from interface:ShaderUniformAccessSets a float in the shader.- Specified by:
setFloatin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setVector
public void setVector(float x, float y) Description copied from interface:ShaderUniformAccessSets a vector in the shader.- Specified by:
setVectorin interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVector
public void setVector(float x, float y, float z) Description copied from interface:ShaderUniformAccessSets a vector in the shader.- Specified by:
setVectorin interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVector
public void setVector(float x, float y, float z, float w) Description copied from interface:ShaderUniformAccessSets a vector in the shader.- Specified by:
setVectorin interfaceShaderUniformAccess- 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
-
setInt
public void setInt(int value) Description copied from interface:ShaderUniformAccessSets an integer in the shader.- Specified by:
setIntin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setVectorI
public void setVectorI(int x, int y) Description copied from interface:ShaderUniformAccessSets an integer vector in the shader.- Specified by:
setVectorIin interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVectorI
public void setVectorI(int x, int y, int z) Description copied from interface:ShaderUniformAccessSets an integer vector in the shader.- Specified by:
setVectorIin interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVectorI
public void setVectorI(int x, int y, int z, int w) Description copied from interface:ShaderUniformAccessSets an integer vector in the shader.- Specified by:
setVectorIin interfaceShaderUniformAccess- 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
-
setDouble
public void setDouble(double value) Description copied from interface:ShaderUniformAccessSets a double in the shader.- Specified by:
setDoublein interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setVector64
public void setVector64(double x, double y) Description copied from interface:ShaderUniformAccessSets a double vector in the shader.- Specified by:
setVector64in interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVector64
public void setVector64(double x, double y, double z) Description copied from interface:ShaderUniformAccessSets a double vector in the shader.- Specified by:
setVector64in interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVector64
public void setVector64(double x, double y, double z, double w) Description copied from interface:ShaderUniformAccessSets a double vector in the shader.- Specified by:
setVector64in interfaceShaderUniformAccess- 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
-
setLong
public void setLong(long value) Description copied from interface:ShaderUniformAccessSets a long in the shader.- Specified by:
setLongin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setVectorI64
public void setVectorI64(long x, long y) Description copied from interface:ShaderUniformAccessSets a long vector in the shader.- Specified by:
setVectorI64in interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vector
-
setVectorI64
public void setVectorI64(long x, long y, long z) Description copied from interface:ShaderUniformAccessSets a long vector in the shader.- Specified by:
setVectorI64in interfaceShaderUniformAccess- Parameters:
x- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVectorI64
public void setVectorI64(long x, long y, long z, long w) Description copied from interface:ShaderUniformAccessSets a long vector in the shader.- Specified by:
setVectorI64in interfaceShaderUniformAccess- 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
-
setFloats
public void setFloats(float... values) Description copied from interface:ShaderUniformAccessSets an array of floats in the shader.- Specified by:
setFloatsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setVectors
public void setVectors(org.joml.Vector2fc... values) Description copied from interface:ShaderUniformAccessSets an array of vectors in the shader.- Specified by:
setVectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setVectors
public void setVectors(org.joml.Vector3fc... values) Description copied from interface:ShaderUniformAccessSets an array of vectors in the shader.- Specified by:
setVectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setVectors
public void setVectors(org.joml.Vector4fc... values) Description copied from interface:ShaderUniformAccessSets an array of vectors in the shader.- Specified by:
setVectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setInts
public void setInts(int... values) Description copied from interface:ShaderUniformAccessSets an array of integers in the shader.- Specified by:
setIntsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setIVectors
public void setIVectors(org.joml.Vector2ic... values) Description copied from interface:ShaderUniformAccessSets an array of integer vectors in the shader.- Specified by:
setIVectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setIVectors
public void setIVectors(org.joml.Vector3ic... values) Description copied from interface:ShaderUniformAccessSets an array of integer vectors in the shader.- Specified by:
setIVectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setIVectors
public void setIVectors(org.joml.Vector4ic... values) Description copied from interface:ShaderUniformAccessSets an array of integer vectors in the shader.- Specified by:
setIVectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setDoubles
public void setDoubles(double... values) Description copied from interface:ShaderUniformAccessSets an array of doubles in the shader.- Specified by:
setDoublesin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
set64Vectors
public void set64Vectors(org.joml.Vector2dc... values) Description copied from interface:ShaderUniformAccessSets an array of double vectors in the shader.- Specified by:
set64Vectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
set64Vectors
public void set64Vectors(org.joml.Vector3dc... values) Description copied from interface:ShaderUniformAccessSets an array of double vectors in the shader.- Specified by:
set64Vectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
set64Vectors
public void set64Vectors(org.joml.Vector4dc... values) Description copied from interface:ShaderUniformAccessSets an array of double vectors in the shader.- Specified by:
set64Vectorsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setLongs
public void setLongs(long... values) Description copied from interface:ShaderUniformAccessSets an array of longs in the shader.- Specified by:
setLongsin interfaceShaderUniformAccess- Parameters:
values- The values to set in order
-
setHandle
public void setHandle(long value) Description copied from interface:ShaderUniformAccessUploads this uniform as a handle type. Only supported if bindless texture is supported.- Specified by:
setHandlein interfaceShaderUniformAccess- Parameters:
value- The handle to upload
-
setHandles
public void setHandles(long... values) Description copied from interface:ShaderUniformAccessUploads this uniform as a handle type. Only supported if bindless texture is supported.- Specified by:
setHandlesin interfaceShaderUniformAccess- Parameters:
values- The handles to upload
-
setMatrix
public void setMatrix(org.joml.Matrix2fc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix
public void setMatrix(org.joml.Matrix3fc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix
public void setMatrix(org.joml.Matrix4fc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix2x3
public void setMatrix2x3(org.joml.Matrix3x2fc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a matrix in the shader.- Specified by:
setMatrix2x3in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix3x2
public void setMatrix3x2(org.joml.Matrix3x2fc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a matrix in the shader.- Specified by:
setMatrix3x2in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix3x4
public void setMatrix3x4(org.joml.Matrix4x3fc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a matrix in the shader.- Specified by:
setMatrix3x4in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix4x3
public void setMatrix4x3(org.joml.Matrix4x3fc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a matrix in the shader.- Specified by:
setMatrix4x3in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix
public void setMatrix(org.joml.Matrix2dc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a double matrix in the shader.- Specified by:
setMatrixin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix
public void setMatrix(org.joml.Matrix3dc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a double matrix in the shader.- Specified by:
setMatrixin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix
public void setMatrix(org.joml.Matrix4dc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a double matrix in the shader.- Specified by:
setMatrixin interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix2x3
public void setMatrix2x3(org.joml.Matrix3x2dc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a double matrix in the shader.- Specified by:
setMatrix2x3in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix3x2
public void setMatrix3x2(org.joml.Matrix3x2dc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a double matrix in the shader.- Specified by:
setMatrix3x2in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix3x4
public void setMatrix3x4(org.joml.Matrix4x3dc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a double matrix in the shader.- Specified by:
setMatrix3x4in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
setMatrix4x3
public void setMatrix4x3(org.joml.Matrix4x3dc value, boolean transpose) Description copied from interface:ShaderUniformAccessSets a double matrix in the shader.- Specified by:
setMatrix4x3in interfaceShaderUniformAccess- Parameters:
value- The value to set
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
accesses
Returns the value of theaccessesrecord component.- Returns:
- the value of the
accessesrecord component
-