Record Class VulkanRenderModuleSurface.SurfaceFormat
java.lang.Object
java.lang.Record
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleSurface.SurfaceFormat
- Record Components:
imageFormat- the Vulkan image formatcolorSpace- the Vulkan colour space the format is presented in
- Enclosing class:
VulkanRenderModuleSurface
public static record VulkanRenderModuleSurface.SurfaceFormat(int imageFormat, int colorSpace)
extends Record
A pixel format paired with the colour space it is interpreted in.
-
Constructor Summary
ConstructorsConstructorDescriptionSurfaceFormat(int imageFormat, int colorSpace) Creates an instance of aSurfaceFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolorSpacerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theimageFormatrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SurfaceFormat
public SurfaceFormat(int imageFormat, int colorSpace) Creates an instance of aSurfaceFormatrecord class.- Parameters:
imageFormat- the value for theimageFormatrecord componentcolorSpace- the value for thecolorSpacerecord 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 with thecomparemethod from their corresponding wrapper classes. -
imageFormat
public int imageFormat()Returns the value of theimageFormatrecord component.- Returns:
- the value of the
imageFormatrecord component
-
colorSpace
public int colorSpace()Returns the value of thecolorSpacerecord component.- Returns:
- the value of the
colorSpacerecord component
-