Record Class SpirvCompileResult
java.lang.Object
java.lang.Record
dev.engine.graphics.shader.SpirvCompileResult
-
Constructor Summary
ConstructorsConstructorDescriptionSpirvCompileResult(boolean success, byte[] binary, String error) Creates an instance of aSpirvCompileResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]binary()Returns the value of thebinaryrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.static SpirvCompileResultfinal inthashCode()Returns a hash code value for this object.static SpirvCompileResultok(byte[] binary) booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpirvCompileResult
Creates an instance of aSpirvCompileResultrecord class.- Parameters:
success- the value for thesuccessrecord componentbinary- the value for thebinaryrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
ok
-
fail
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
binary
public byte[] binary()Returns the value of thebinaryrecord component.- Returns:
- the value of the
binaryrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-