Class VulkanSurfaceFormatKHR
java.lang.Object
com.io7m.jcoronado.extensions.khr_surface.api.VulkanSurfaceFormatKHR
- All Implemented Interfaces:
VulkanSurfaceFormatKHRType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanSurfaceFormatKHR. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanSurfaceFormatKHR.static VulkanSurfaceFormatKHRcopyOf(VulkanSurfaceFormatKHRType instance) Creates an immutable copy of aVulkanSurfaceFormatKHRTypevalue.booleanThis instance is equal to all instances ofVulkanSurfaceFormatKHRthat have equal attribute values.format()inthashCode()Computes a hash code from attributes:format,colorSpace.static VulkanSurfaceFormatKHRof(VulkanFormat format, VulkanColorSpaceKHR colorSpace) Construct a new immutableVulkanSurfaceFormatKHRinstance.toString()Prints the immutable valueVulkanSurfaceFormatKHRwith attribute values.final VulkanSurfaceFormatKHRCopy the current immutable object by setting a value for thecolorSpaceattribute.final VulkanSurfaceFormatKHRwithFormat(VulkanFormat value) Copy the current immutable object by setting a value for theformatattribute.
-
Method Details
-
format
- Specified by:
formatin interfaceVulkanSurfaceFormatKHRType- Returns:
- A format that is compatible with the specified surface.
-
colorSpace
- Specified by:
colorSpacein interfaceVulkanSurfaceFormatKHRType- Returns:
- A presentation color space that is compatible with the surface.
-
withFormat
Copy the current immutable object by setting a value for theformatattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for format- Returns:
- A modified copy or the
thisobject
-
withColorSpace
Copy the current immutable object by setting a value for thecolorSpaceattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for colorSpace- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableVulkanSurfaceFormatKHRinstance.- Parameters:
format- The value for theformatattributecolorSpace- The value for thecolorSpaceattribute- Returns:
- An immutable VulkanSurfaceFormatKHR instance
-
copyOf
Creates an immutable copy of aVulkanSurfaceFormatKHRTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanSurfaceFormatKHR instance
-
builder
Creates a builder forVulkanSurfaceFormatKHR.VulkanSurfaceFormatKHR.builder() .setFormat(com.io7m.jcoronado.api.VulkanFormat) // required
format.setColorSpace(com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanColorSpaceKHR) // requiredcolorSpace.build();- Returns:
- A new VulkanSurfaceFormatKHR builder
-