Class VulkanImageCopy
java.lang.Object
com.io7m.jcoronado.api.VulkanImageCopy
- All Implemented Interfaces:
VulkanImageCopyType
Structure specifying an image copy operation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanImageCopy.Builderbuilder()Creates a builder forVulkanImageCopy.static VulkanImageCopycopyOf(VulkanImageCopyType instance) Creates an immutable copy of aVulkanImageCopyTypevalue.booleanThis instance is equal to all instances ofVulkanImageCopythat have equal attribute values.extent()inthashCode()Computes a hash code from attributes:sourceSubresource,sourceOffset,targetSubresource,targetOffset,extent.static VulkanImageCopyof(VulkanImageSubresourceLayers sourceSubresource, VulkanOffset3D sourceOffset, VulkanImageSubresourceLayers targetSubresource, VulkanOffset3D targetOffset, VulkanExtent3D extent) Construct a new immutableVulkanImageCopyinstance.toString()Prints the immutable valueVulkanImageCopywith attribute values.final VulkanImageCopywithExtent(VulkanExtent3D value) Copy the current immutable object by setting a value for theextentattribute.final VulkanImageCopywithSourceOffset(VulkanOffset3D value) Copy the current immutable object by setting a value for thesourceOffsetattribute.final VulkanImageCopyCopy the current immutable object by setting a value for thesourceSubresourceattribute.final VulkanImageCopywithTargetOffset(VulkanOffset3D value) Copy the current immutable object by setting a value for thetargetOffsetattribute.final VulkanImageCopyCopy the current immutable object by setting a value for thetargetSubresourceattribute.
-
Method Details
-
sourceSubresource
- Specified by:
sourceSubresourcein interfaceVulkanImageCopyType- Returns:
- The subresource to copy from
-
sourceOffset
- Specified by:
sourceOffsetin interfaceVulkanImageCopyType- Returns:
- The offset of the source region
-
targetSubresource
- Specified by:
targetSubresourcein interfaceVulkanImageCopyType- Returns:
- The subresource to copy to
-
targetOffset
- Specified by:
targetOffsetin interfaceVulkanImageCopyType- Returns:
- The offset of the target region
-
extent
- Specified by:
extentin interfaceVulkanImageCopyType- Returns:
- The extent of the copied region
-
withSourceSubresource
Copy the current immutable object by setting a value for thesourceSubresourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceSubresource- Returns:
- A modified copy of the
thisobject
-
withSourceOffset
Copy the current immutable object by setting a value for thesourceOffsetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceOffset- Returns:
- A modified copy of the
thisobject
-
withTargetSubresource
Copy the current immutable object by setting a value for thetargetSubresourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetSubresource- Returns:
- A modified copy of the
thisobject
-
withTargetOffset
Copy the current immutable object by setting a value for thetargetOffsetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetOffset- Returns:
- A modified copy of the
thisobject
-
withExtent
Copy the current immutable object by setting a value for theextentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for extent- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanImageCopy of(VulkanImageSubresourceLayers sourceSubresource, VulkanOffset3D sourceOffset, VulkanImageSubresourceLayers targetSubresource, VulkanOffset3D targetOffset, VulkanExtent3D extent) Construct a new immutableVulkanImageCopyinstance.- Parameters:
sourceSubresource- The value for thesourceSubresourceattributesourceOffset- The value for thesourceOffsetattributetargetSubresource- The value for thetargetSubresourceattributetargetOffset- The value for thetargetOffsetattributeextent- The value for theextentattribute- Returns:
- An immutable VulkanImageCopy instance
-
copyOf
Creates an immutable copy of aVulkanImageCopyTypevalue. 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 VulkanImageCopy instance
-
builder
Creates a builder forVulkanImageCopy.VulkanImageCopy.builder() .setSourceSubresource(com.io7m.jcoronado.api.VulkanImageSubresourceLayers) // requiredsourceSubresource.setSourceOffset(com.io7m.jcoronado.api.VulkanOffset3D) // requiredsourceOffset.setTargetSubresource(com.io7m.jcoronado.api.VulkanImageSubresourceLayers) // requiredtargetSubresource.setTargetOffset(com.io7m.jcoronado.api.VulkanOffset3D) // requiredtargetOffset.setExtent(com.io7m.jcoronado.api.VulkanExtent3D) // requiredextent.build();- Returns:
- A new VulkanImageCopy builder
-