Record Class PipelineDescriptor
java.lang.Object
java.lang.Record
dev.engine.graphics.pipeline.PipelineDescriptor
public record PipelineDescriptor(List<ShaderSource> shaders, List<ShaderBinary> binaries, VertexFormat vertexFormat)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPipelineDescriptor(List<ShaderSource> shaders, List<ShaderBinary> binaries, VertexFormat vertexFormat) Creates an instance of aPipelineDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinaries()Returns the value of thebinariesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasSpirv()True if this descriptor contains SPIRV binaries.static PipelineDescriptorof(ShaderSource... shaders) Creates a descriptor from GLSL text sources.static PipelineDescriptorofSpirv(ShaderBinary... binaries) Creates a descriptor from pre-compiled SPIRV binaries.shaders()Returns the value of theshadersrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexFormatrecord component.withVertexFormat(VertexFormat format) Returns a copy with the given vertex format.
-
Constructor Details
-
PipelineDescriptor
public PipelineDescriptor(List<ShaderSource> shaders, List<ShaderBinary> binaries, VertexFormat vertexFormat) Creates an instance of aPipelineDescriptorrecord class.- Parameters:
shaders- the value for theshadersrecord componentbinaries- the value for thebinariesrecord componentvertexFormat- the value for thevertexFormatrecord component
-
-
Method Details
-
of
Creates a descriptor from GLSL text sources. -
ofSpirv
Creates a descriptor from pre-compiled SPIRV binaries. -
withVertexFormat
Returns a copy with the given vertex format. -
hasSpirv
public boolean hasSpirv()True if this descriptor contains SPIRV binaries. -
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). -
shaders
Returns the value of theshadersrecord component.- Returns:
- the value of the
shadersrecord component
-
binaries
Returns the value of thebinariesrecord component.- Returns:
- the value of the
binariesrecord component
-
vertexFormat
Returns the value of thevertexFormatrecord component.- Returns:
- the value of the
vertexFormatrecord component
-