Record Class SPIRVModule.TypeHandle
java.lang.Object
java.lang.Record
com.mojang.renderpearl.frontend.shaders.SPIRVModule.TypeHandle
- All Implemented Interfaces:
SpvModule.Reflection.Type
- Enclosing class:
SPIRVModule
private static record SPIRVModule.TypeHandle(long typeHandle)
extends Record
implements SpvModule.Reflection.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thetypeHandlerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTypeHandle(long typeHandle) Creates an instance of aTypeHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintintarrayLength(int dimensionIndex) intbaseType()intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetypeHandlerecord component.int
-
Field Details
-
typeHandle
private final long typeHandleThe field for thetypeHandlerecord component.
-
-
Constructor Details
-
TypeHandle
private TypeHandle(long typeHandle) Creates an instance of aTypeHandlerecord class.- Parameters:
typeHandle- the value for thetypeHandlerecord component
-
-
Method Details
-
baseType
public int baseType()- Specified by:
baseTypein interfaceSpvModule.Reflection.Type
-
dimensions
public int dimensions()- Specified by:
dimensionsin interfaceSpvModule.Reflection.Type
-
vectorSize
public int vectorSize()- Specified by:
vectorSizein interfaceSpvModule.Reflection.Type
-
arrayDimensions
public int arrayDimensions()- Specified by:
arrayDimensionsin interfaceSpvModule.Reflection.Type
-
arrayLength
public int arrayLength(int dimensionIndex) - Specified by:
arrayLengthin interfaceSpvModule.Reflection.Type
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
typeHandle
public long typeHandle()Returns the value of thetypeHandlerecord component.- Returns:
- the value of the
typeHandlerecord component
-