Record Class SampledTexture
java.lang.Object
java.lang.Record
dev.engine.graphics.texture.SampledTexture
- Record Components:
texture- the texture datasampler- the sampler configuration (filtering, wrapping, etc.)
A texture paired with its sampler configuration.
Used as the value type for texture properties in materials.
-
Constructor Summary
ConstructorsConstructorDescriptionSampledTexture(TextureData texture) Creates a sampled texture with default linear filtering.SampledTexture(TextureData texture, SamplerDescriptor sampler) Creates an instance of aSampledTexturerecord 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
-
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
-
sampler
-