Record Class VulkanRenderModuleSwapChain.VulkanSurfaceFormat
java.lang.Object
java.lang.Record
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleSwapChain.VulkanSurfaceFormat
- Record Components:
imageFormat- the Vulkan image formatcolorSpace- the Vulkan colour space the format is presented in
- Enclosing class:
VulkanRenderModuleSwapChain
public static record VulkanRenderModuleSwapChain.VulkanSurfaceFormat(int imageFormat, int colorSpace)
extends Record
A pixel format paired with the colour space it is interpreted in.
-
Constructor Summary
ConstructorsConstructorDescriptionVulkanSurfaceFormat(int imageFormat, int colorSpace) Creates an instance of aVulkanSurfaceFormatrecord 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
-
VulkanSurfaceFormat
public VulkanSurfaceFormat(int imageFormat, int colorSpace) Creates an instance of aVulkanSurfaceFormatrecord 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
-