Record Class ComputePipelineDescriptor
java.lang.Object
java.lang.Record
dev.engine.graphics.pipeline.ComputePipelineDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionComputePipelineDescriptor(ShaderSource shader, ShaderBinary binary) Creates an instance of aComputePipelineDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinary()Returns the value of thebinaryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasSpirv()static ComputePipelineDescriptorof(ShaderSource source) static ComputePipelineDescriptorofSpirv(ShaderBinary binary) shader()Returns the value of theshaderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComputePipelineDescriptor
Creates an instance of aComputePipelineDescriptorrecord class.- Parameters:
shader- the value for theshaderrecord componentbinary- the value for thebinaryrecord component
-
-
Method Details
-
of
-
ofSpirv
-
hasSpirv
public boolean hasSpirv() -
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). -
shader
Returns the value of theshaderrecord component.- Returns:
- the value of the
shaderrecord component
-
binary
Returns the value of thebinaryrecord component.- Returns:
- the value of the
binaryrecord component
-