Record Class ShaderSource
java.lang.Object
java.lang.Record
dev.engine.graphics.pipeline.ShaderSource
-
Constructor Summary
ConstructorsConstructorDescriptionShaderSource(ShaderStage stage, String source) Creates a ShaderSource with the default entry point name "main".ShaderSource(ShaderStage stage, String source, String entryPoint) Creates an instance of aShaderSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentryPointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShaderSource
Creates a ShaderSource with the default entry point name "main". -
ShaderSource
Creates an instance of aShaderSourcerecord class.- Parameters:
stage- the value for thestagerecord componentsource- the value for thesourcerecord componententryPoint- the value for theentryPointrecord 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
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
entryPoint
Returns the value of theentryPointrecord component.- Returns:
- the value of the
entryPointrecord component
-