- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanImageViewCreateInfo
-
- All Implemented Interfaces:
VulkanImageViewCreateInfoType
public final class VulkanImageViewCreateInfo extends java.lang.Object implements VulkanImageViewCreateInfoType
The type of Vulkan image view creation information.- See Also:
- "VkImageViewCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanImageViewCreateInfo.Builder
Builds instances of typeVulkanImageViewCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanImageViewCreateInfo.Builder
builder()
Creates a builder forVulkanImageViewCreateInfo
.VulkanComponentMapping
components()
static VulkanImageViewCreateInfo
copyOf(VulkanImageViewCreateInfoType instance)
Creates an immutable copy of aVulkanImageViewCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanImageViewCreateInfo
that have equal attribute values.java.util.Set<VulkanImageViewCreateFlag>
flags()
VulkanFormat
format()
int
hashCode()
Computes a hash code from attributes:flags
,image
,viewType
,format
,components
,subresourceRange
.VulkanImageType
image()
static VulkanImageViewCreateInfo
of(java.lang.Iterable<VulkanImageViewCreateFlag> flags, VulkanImageType image, VulkanImageViewKind viewType, VulkanFormat format, VulkanComponentMapping components, VulkanImageSubresourceRange subresourceRange)
Construct a new immutableVulkanImageViewCreateInfo
instance.static VulkanImageViewCreateInfo
of(java.util.Set<VulkanImageViewCreateFlag> flags, VulkanImageType image, VulkanImageViewKind viewType, VulkanFormat format, VulkanComponentMapping components, VulkanImageSubresourceRange subresourceRange)
Construct a new immutableVulkanImageViewCreateInfo
instance.VulkanImageSubresourceRange
subresourceRange()
java.lang.String
toString()
Prints the immutable valueVulkanImageViewCreateInfo
with attribute values.VulkanImageViewKind
viewType()
VulkanImageViewCreateInfo
withComponents(VulkanComponentMapping value)
Copy the current immutable object by setting a value for thecomponents
attribute.VulkanImageViewCreateInfo
withFlags(VulkanImageViewCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanImageViewCreateInfo
withFlags(java.lang.Iterable<VulkanImageViewCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanImageViewCreateInfo
withFormat(VulkanFormat value)
Copy the current immutable object by setting a value for theformat
attribute.VulkanImageViewCreateInfo
withImage(VulkanImageType value)
Copy the current immutable object by setting a value for theimage
attribute.VulkanImageViewCreateInfo
withSubresourceRange(VulkanImageSubresourceRange value)
Copy the current immutable object by setting a value for thesubresourceRange
attribute.VulkanImageViewCreateInfo
withViewType(VulkanImageViewKind value)
Copy the current immutable object by setting a value for theviewType
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanImageViewCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanImageViewCreateInfoType
- Returns:
- The view creation flags
-
image
public VulkanImageType image()
- Specified by:
image
in interfaceVulkanImageViewCreateInfoType
- Returns:
- The image
-
viewType
public VulkanImageViewKind viewType()
- Specified by:
viewType
in interfaceVulkanImageViewCreateInfoType
- Returns:
- The view type
-
format
public VulkanFormat format()
- Specified by:
format
in interfaceVulkanImageViewCreateInfoType
- Returns:
- The format
-
components
public VulkanComponentMapping components()
- Specified by:
components
in interfaceVulkanImageViewCreateInfoType
- Returns:
- The component mapping
-
subresourceRange
public VulkanImageSubresourceRange subresourceRange()
- Specified by:
subresourceRange
in interfaceVulkanImageViewCreateInfoType
- Returns:
- The set of mipmap levels and array layers to be accessible to the view
-
withFlags
public final VulkanImageViewCreateInfo withFlags(VulkanImageViewCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanImageViewCreateInfo withFlags(java.lang.Iterable<VulkanImageViewCreateFlag> elements)
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 of
this
object
-
withImage
public final VulkanImageViewCreateInfo withImage(VulkanImageType value)
Copy the current immutable object by setting a value for theimage
attribute. 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 of the
this
object
-
withViewType
public final VulkanImageViewCreateInfo withViewType(VulkanImageViewKind value)
Copy the current immutable object by setting a value for theviewType
attribute. 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 of the
this
object
-
withFormat
public final VulkanImageViewCreateInfo withFormat(VulkanFormat value)
Copy the current immutable object by setting a value for theformat
attribute. 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 of the
this
object
-
withComponents
public final VulkanImageViewCreateInfo withComponents(VulkanComponentMapping value)
Copy the current immutable object by setting a value for thecomponents
attribute. 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 of the
this
object
-
withSubresourceRange
public final VulkanImageViewCreateInfo withSubresourceRange(VulkanImageSubresourceRange value)
Copy the current immutable object by setting a value for thesubresourceRange
attribute. 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 of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanImageViewCreateInfo
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:flags
,image
,viewType
,format
,components
,subresourceRange
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanImageViewCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanImageViewCreateInfo of(java.util.Set<VulkanImageViewCreateFlag> flags, VulkanImageType image, VulkanImageViewKind viewType, VulkanFormat format, VulkanComponentMapping components, VulkanImageSubresourceRange subresourceRange)
Construct a new immutableVulkanImageViewCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeimage
- The value for theimage
attributeviewType
- The value for theviewType
attributeformat
- The value for theformat
attributecomponents
- The value for thecomponents
attributesubresourceRange
- The value for thesubresourceRange
attribute- Returns:
- An immutable VulkanImageViewCreateInfo instance
-
of
public static VulkanImageViewCreateInfo of(java.lang.Iterable<VulkanImageViewCreateFlag> flags, VulkanImageType image, VulkanImageViewKind viewType, VulkanFormat format, VulkanComponentMapping components, VulkanImageSubresourceRange subresourceRange)
Construct a new immutableVulkanImageViewCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeimage
- The value for theimage
attributeviewType
- The value for theviewType
attributeformat
- The value for theformat
attributecomponents
- The value for thecomponents
attributesubresourceRange
- The value for thesubresourceRange
attribute- Returns:
- An immutable VulkanImageViewCreateInfo instance
-
copyOf
public static VulkanImageViewCreateInfo copyOf(VulkanImageViewCreateInfoType instance)
Creates an immutable copy of aVulkanImageViewCreateInfoType
value. 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
public static VulkanImageViewCreateInfo.Builder builder()
Creates a builder forVulkanImageViewCreateInfo
.- Returns:
- A new VulkanImageViewCreateInfo builder
-
-