Record Class ShaderBinary
java.lang.Object
java.lang.Record
dev.engine.graphics.pipeline.ShaderBinary
Pre-compiled shader bytecode (SPIRV).
-
Constructor Summary
ConstructorsConstructorDescriptionShaderBinary(ShaderStage stage, byte[] spirv) Creates an instance of aShaderBinaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]spirv()Returns the value of thespirvrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShaderBinary
Creates an instance of aShaderBinaryrecord class.- Parameters:
stage- the value for thestagerecord componentspirv- the value for thespirvrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
spirv
public byte[] spirv()Returns the value of thespirvrecord component.- Returns:
- the value of the
spirvrecord component
-