Class VulkanDescriptorImageInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanDescriptorImageInfo
- All Implemented Interfaces:
VulkanDescriptorImageInfoType
public final class VulkanDescriptorImageInfo
extends Object
implements VulkanDescriptorImageInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanDescriptorImageInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanDescriptorImageInfo.static VulkanDescriptorImageInfocopyOf(VulkanDescriptorImageInfoType instance) Creates an immutable copy of aVulkanDescriptorImageInfoTypevalue.booleanThis instance is equal to all instances ofVulkanDescriptorImageInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:sampler,imageView,imageLayout.sampler()toString()Prints the immutable valueVulkanDescriptorImageInfowith attribute values.withImageLayout(VulkanImageLayout value) Copy the current immutable object by setting a value for theimageLayoutattribute.withImageView(VulkanImageViewType value) Copy the current immutable object by setting a value for theimageViewattribute.withSampler(VulkanSamplerType value) Copy the current immutable object by setting a value for thesamplerattribute.
-
Method Details
-
sampler
- Specified by:
samplerin 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
- Specified by:
imageViewin 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
- Specified by:
imageLayoutin 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
Copy the current immutable object by setting a value for thesamplerattribute. 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 or the
thisobject
-
withImageView
Copy the current immutable object by setting a value for theimageViewattribute. 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 or the
thisobject
-
withImageLayout
Copy the current immutable object by setting a value for theimageLayoutattribute. 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 or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanDescriptorImageInfoTypevalue. 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
Creates a builder forVulkanDescriptorImageInfo.VulkanDescriptorImageInfo.builder() .setSampler(com.io7m.jcoronado.api.VulkanSamplerType) // required
sampler.setImageView(com.io7m.jcoronado.api.VulkanImageViewType) // requiredimageView.setImageLayout(com.io7m.jcoronado.api.VulkanImageLayout) // optionalimageLayout.build();- Returns:
- A new VulkanDescriptorImageInfo builder
-