Record Class ShaderUniformCache.StorageBlock
java.lang.Object
java.lang.Record
foundry.veil.impl.client.render.shader.program.ShaderUniformCache.StorageBlock
- Enclosing class:
ShaderUniformCache
public static record ShaderUniformCache.StorageBlock(String name, int index, int size, int arrayStride, ShaderUniformCache.Uniform[] fields)
extends Record
-
Constructor Summary
ConstructorDescriptionStorageBlock
(String name, int index, int size, int arrayStride, ShaderUniformCache.Uniform[] fields) Creates an instance of aStorageBlock
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
array()
int
Returns the value of thearrayStride
record component.final boolean
Indicates whether some other object is "equal to" this one.fields()
Returns the value of thefields
record component.final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.name()
Returns the value of thename
record component.int
size()
Returns the value of thesize
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
StorageBlock
public StorageBlock(String name, int index, int size, int arrayStride, ShaderUniformCache.Uniform[] fields) Creates an instance of aStorageBlock
record class.- Parameters:
name
- the value for thename
record componentindex
- the value for theindex
record componentsize
- the value for thesize
record componentarrayStride
- the value for thearrayStride
record componentfields
- the value for thefields
record component
-
-
Method Details
-
array
public boolean array() -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
index
public int index()Returns the value of theindex
record component.- Returns:
- the value of the
index
record component
-
size
public int size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
arrayStride
public int arrayStride()Returns the value of thearrayStride
record component.- Returns:
- the value of the
arrayStride
record component
-
fields
Returns the value of thefields
record component.- Returns:
- the value of the
fields
record component
-