Record Class DrawCall.TextureBinding
java.lang.Object
java.lang.Record
dev.engine.graphics.command.DrawCall.TextureBinding
- Enclosing class:
DrawCall
public static record DrawCall.TextureBinding(Handle<TextureResource> texture, Handle<SamplerResource> sampler)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextureBinding(Handle<TextureResource> texture, Handle<SamplerResource> sampler) Creates an instance of aTextureBindingrecord 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.sampler()Returns the value of thesamplerrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextureBinding
Creates an instance of aTextureBindingrecord class.- Parameters:
texture- the value for thetexturerecord componentsampler- the value for thesamplerrecord 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). -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
sampler
Returns the value of thesamplerrecord component.- Returns:
- the value of the
samplerrecord component
-