Class VulkanRenderingAttachmentInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanRenderingAttachmentInfo
- All Implemented Interfaces:
VulkanRenderingAttachmentInfoType
public final class VulkanRenderingAttachmentInfo
extends Object
implements VulkanRenderingAttachmentInfoType
Structure specifying rendering attachment info.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanRenderingAttachmentInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanRenderingAttachmentInfo.copyOf(VulkanRenderingAttachmentInfoType instance) Creates an immutable copy of aVulkanRenderingAttachmentInfoTypevalue.booleanThis instance is equal to all instances ofVulkanRenderingAttachmentInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:imageView,imageLayout,resolveMode,resolveImageView,resolveImageLayout,loadOp,storeOp,clearValue.loadOp()storeOp()toString()Prints the immutable valueVulkanRenderingAttachmentInfowith attribute values.Copy the current immutable object by setting a value for theclearValueattribute.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.withLoadOp(VulkanAttachmentLoadOp value) Copy the current immutable object by setting a value for theloadOpattribute.Copy the current immutable object by setting a value for theresolveImageLayoutattribute.Copy the current immutable object by setting a present value for the optionalresolveImageViewattribute.withResolveImageView(Optional<? extends VulkanImageViewType> optional) Copy the current immutable object by setting an optional value for theresolveImageViewattribute.withResolveMode(VulkanResolveModeFlag... elements) Copy the current immutable object with elements that replace the content ofresolveMode.withResolveMode(Iterable<VulkanResolveModeFlag> elements) Copy the current immutable object with elements that replace the content ofresolveMode.Copy the current immutable object by setting a value for thestoreOpattribute.
-
Method Details
-
imageView
- Specified by:
imageViewin interfaceVulkanRenderingAttachmentInfoType- Returns:
- The image view
-
imageLayout
- Specified by:
imageLayoutin interfaceVulkanRenderingAttachmentInfoType- Returns:
- The image layout
-
resolveMode
- Specified by:
resolveModein interfaceVulkanRenderingAttachmentInfoType- Returns:
- The resolve mode flags
-
resolveImageView
- Specified by:
resolveImageViewin interfaceVulkanRenderingAttachmentInfoType- Returns:
- The resolved image view
-
resolveImageLayout
- Specified by:
resolveImageLayoutin interfaceVulkanRenderingAttachmentInfoType- Returns:
- The resolved image layout
-
loadOp
- Specified by:
loadOpin interfaceVulkanRenderingAttachmentInfoType- Returns:
- The attachment load op
-
storeOp
- Specified by:
storeOpin interfaceVulkanRenderingAttachmentInfoType- Returns:
- The attachment store op
-
clearValue
- Specified by:
clearValuein interfaceVulkanRenderingAttachmentInfoType- Returns:
- The attachment clear value
-
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
-
withResolveMode
Copy the current immutable object with elements that replace the content ofresolveMode.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withResolveMode
public final VulkanRenderingAttachmentInfo withResolveMode(Iterable<VulkanResolveModeFlag> elements) Copy the current immutable object with elements that replace the content ofresolveMode. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of resolveMode elements to set- Returns:
- A modified copy or
thisif not changed
-
withResolveImageView
Copy the current immutable object by setting a present value for the optionalresolveImageViewattribute.- Parameters:
value- The value for resolveImageView- Returns:
- A modified copy or
thisif not changed
-
withResolveImageView
public final VulkanRenderingAttachmentInfo withResolveImageView(Optional<? extends VulkanImageViewType> optional) Copy the current immutable object by setting an optional value for theresolveImageViewattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for resolveImageView- Returns:
- A modified copy or
thisif not changed
-
withResolveImageLayout
Copy the current immutable object by setting a value for theresolveImageLayoutattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for resolveImageLayout- Returns:
- A modified copy or the
thisobject
-
withLoadOp
Copy the current immutable object by setting a value for theloadOpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for loadOp- Returns:
- A modified copy or the
thisobject
-
withStoreOp
Copy the current immutable object by setting a value for thestoreOpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for storeOp- Returns:
- A modified copy or the
thisobject
-
withClearValue
Copy the current immutable object by setting a value for theclearValueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for clearValue- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanRenderingAttachmentInfoTypevalue. 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 VulkanRenderingAttachmentInfo instance
-
builder
Creates a builder forVulkanRenderingAttachmentInfo.VulkanRenderingAttachmentInfo.builder() .setImageView(com.io7m.jcoronado.api.VulkanImageViewType) // required
imageView.setImageLayout(com.io7m.jcoronado.api.VulkanImageLayout) // requiredimageLayout.addResolveMode|addAllResolveMode(com.io7m.jcoronado.api.VulkanResolveModeFlag) //resolveModeelements .setResolveImageView(Optional<com.io7m.jcoronado.api.VulkanImageViewType>) // optionalresolveImageView.setResolveImageLayout(com.io7m.jcoronado.api.VulkanImageLayout) // optionalresolveImageLayout.setLoadOp(com.io7m.jcoronado.api.VulkanAttachmentLoadOp) // requiredloadOp.setStoreOp(com.io7m.jcoronado.api.VulkanAttachmentStoreOp) // requiredstoreOp.setClearValue(com.io7m.jcoronado.api.VulkanClearValueType) // requiredclearValue.build();- Returns:
- A new VulkanRenderingAttachmentInfo builder
-