- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanDescriptorImageInfo
-
- All Implemented Interfaces:
VulkanDescriptorImageInfoType
public final class VulkanDescriptorImageInfo extends java.lang.Object implements VulkanDescriptorImageInfoType
- See Also:
- "VkDescriptorImageInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanDescriptorImageInfo.Builder
Builds instances of typeVulkanDescriptorImageInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanDescriptorImageInfo.Builder
builder()
Creates a builder forVulkanDescriptorImageInfo
.static VulkanDescriptorImageInfo
copyOf(VulkanDescriptorImageInfoType instance)
Creates an immutable copy of aVulkanDescriptorImageInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorImageInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:sampler
,imageView
,imageLayout
.VulkanImageLayout
imageLayout()
VulkanImageViewType
imageView()
static VulkanDescriptorImageInfo
of(VulkanSamplerType sampler, VulkanImageViewType imageView, VulkanImageLayout imageLayout)
Construct a new immutableVulkanDescriptorImageInfo
instance.VulkanSamplerType
sampler()
java.lang.String
toString()
Prints the immutable valueVulkanDescriptorImageInfo
with attribute values.VulkanDescriptorImageInfo
withImageLayout(VulkanImageLayout value)
Copy the current immutable object by setting a value for theimageLayout
attribute.VulkanDescriptorImageInfo
withImageView(VulkanImageViewType value)
Copy the current immutable object by setting a value for theimageView
attribute.VulkanDescriptorImageInfo
withSampler(VulkanSamplerType value)
Copy the current immutable object by setting a value for thesampler
attribute.
-
-
-
Method Detail
-
sampler
public VulkanSamplerType sampler()
- Specified by:
sampler
in interfaceVulkanDescriptorImageInfoType
- Returns:
- A sampler handle, and is used in descriptor updates for types VK_DESCRIPTOR_TYPE_SAMPLER and VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER if the binding being updated does not use immutable samplers.
-
imageView
public VulkanImageViewType imageView()
- Specified by:
imageView
in interfaceVulkanDescriptorImageInfoType
- Returns:
- An image view handle, and is used in descriptor updates for types VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT.
-
imageLayout
public VulkanImageLayout imageLayout()
- Specified by:
imageLayout
in interfaceVulkanDescriptorImageInfoType
- Returns:
- The layout that the image subresources accessible from imageView will be in at the time this descriptor is accessed. imageLayout is used in descriptor updates for types VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT.
-
withSampler
public final VulkanDescriptorImageInfo withSampler(VulkanSamplerType value)
Copy the current immutable object by setting a value for thesampler
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for sampler- Returns:
- A modified copy of the
this
object
-
withImageView
public final VulkanDescriptorImageInfo withImageView(VulkanImageViewType value)
Copy the current immutable object by setting a value for theimageView
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for imageView- Returns:
- A modified copy of the
this
object
-
withImageLayout
public final VulkanDescriptorImageInfo withImageLayout(VulkanImageLayout value)
Copy the current immutable object by setting a value for theimageLayout
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for imageLayout- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorImageInfo
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:sampler
,imageView
,imageLayout
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanDescriptorImageInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanDescriptorImageInfo of(VulkanSamplerType sampler, VulkanImageViewType imageView, VulkanImageLayout imageLayout)
Construct a new immutableVulkanDescriptorImageInfo
instance.- Parameters:
sampler
- The value for thesampler
attributeimageView
- The value for theimageView
attributeimageLayout
- The value for theimageLayout
attribute- Returns:
- An immutable VulkanDescriptorImageInfo instance
-
copyOf
public static VulkanDescriptorImageInfo copyOf(VulkanDescriptorImageInfoType instance)
Creates an immutable copy of aVulkanDescriptorImageInfoType
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 VulkanDescriptorImageInfo instance
-
builder
public static VulkanDescriptorImageInfo.Builder builder()
Creates a builder forVulkanDescriptorImageInfo
.- Returns:
- A new VulkanDescriptorImageInfo builder
-
-