Class VulkanImageViewCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanImageViewCreateInfo
- All Implemented Interfaces:
VulkanImageViewCreateInfoType
public final class VulkanImageViewCreateInfo
extends Object
implements VulkanImageViewCreateInfoType
The type of Vulkan image view creation information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanImageViewCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanImageViewCreateInfo.static VulkanImageViewCreateInfocopyOf(VulkanImageViewCreateInfoType instance) Creates an immutable copy of aVulkanImageViewCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanImageViewCreateInfothat have equal attribute values.flags()format()inthashCode()Computes a hash code from attributes:flags,image,viewType,format,components,subresourceRange.image()toString()Prints the immutable valueVulkanImageViewCreateInfowith attribute values.viewType()Copy the current immutable object by setting a value for thecomponentsattribute.withFlags(VulkanImageViewCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.withFlags(Iterable<VulkanImageViewCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags.withFormat(VulkanFormat value) Copy the current immutable object by setting a value for theformatattribute.withImage(VulkanImageType value) Copy the current immutable object by setting a value for theimageattribute.Copy the current immutable object by setting a value for thesubresourceRangeattribute.withViewType(VulkanImageViewKind value) Copy the current immutable object by setting a value for theviewTypeattribute.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanImageViewCreateInfoType- Returns:
- The view creation flags
-
image
- Specified by:
imagein interfaceVulkanImageViewCreateInfoType- Returns:
- The image
-
viewType
- Specified by:
viewTypein interfaceVulkanImageViewCreateInfoType- Returns:
- The view type
-
format
- Specified by:
formatin interfaceVulkanImageViewCreateInfoType- Returns:
- The format
-
components
- Specified by:
componentsin interfaceVulkanImageViewCreateInfoType- Returns:
- The component mapping
-
subresourceRange
- Specified by:
subresourceRangein interfaceVulkanImageViewCreateInfoType- Returns:
- The set of mipmap levels and array layers to be accessible to the view
-
withFlags
Copy the current immutable object with elements that replace the content offlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFlags
Copy the current immutable object with elements that replace the content offlags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of flags elements to set- Returns:
- A modified copy or
thisif not changed
-
withImage
Copy the current immutable object by setting a value for theimageattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for image- Returns:
- A modified copy or the
thisobject
-
withViewType
Copy the current immutable object by setting a value for theviewTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for viewType- Returns:
- A modified copy or the
thisobject
-
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
-
withComponents
Copy the current immutable object by setting a value for thecomponentsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for components- Returns:
- A modified copy or the
thisobject
-
withSubresourceRange
Copy the current immutable object by setting a value for thesubresourceRangeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for subresourceRange- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanImageViewCreateInfoTypevalue. 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 VulkanImageViewCreateInfo instance
-
builder
Creates a builder forVulkanImageViewCreateInfo.VulkanImageViewCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanImageViewCreateFlag) //
flagselements .setImage(com.io7m.jcoronado.api.VulkanImageType) // requiredimage.setViewType(com.io7m.jcoronado.api.VulkanImageViewKind) // optionalviewType.setFormat(com.io7m.jcoronado.api.VulkanFormat) // optionalformat.setComponents(com.io7m.jcoronado.api.VulkanComponentMapping) // optionalcomponents.setSubresourceRange(com.io7m.jcoronado.api.VulkanImageSubresourceRange) // optionalsubresourceRange.build();- Returns:
- A new VulkanImageViewCreateInfo builder
-