Class VulkanImageBlit
java.lang.Object
com.io7m.jcoronado.api.VulkanImageBlit
- All Implemented Interfaces:
VulkanImageBlitType
Structure specifying an image blit operation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanImageBlit.Builderbuilder()Creates a builder forVulkanImageBlit.static VulkanImageBlitcopyOf(VulkanImageBlitType instance) Creates an immutable copy of aVulkanImageBlitTypevalue.booleanThis instance is equal to all instances ofVulkanImageBlitthat have equal attribute values.inthashCode()Computes a hash code from attributes:sourceSubresource,sourceOffset0,sourceOffset1,targetSubresource,targetOffset0,targetOffset1.toString()Prints the immutable valueVulkanImageBlitwith attribute values.final VulkanImageBlitwithSourceOffset0(VulkanOffset3D value) Copy the current immutable object by setting a value for thesourceOffset0attribute.final VulkanImageBlitwithSourceOffset1(VulkanOffset3D value) Copy the current immutable object by setting a value for thesourceOffset1attribute.final VulkanImageBlitCopy the current immutable object by setting a value for thesourceSubresourceattribute.final VulkanImageBlitwithTargetOffset0(VulkanOffset3D value) Copy the current immutable object by setting a value for thetargetOffset0attribute.final VulkanImageBlitwithTargetOffset1(VulkanOffset3D value) Copy the current immutable object by setting a value for thetargetOffset1attribute.final VulkanImageBlitCopy the current immutable object by setting a value for thetargetSubresourceattribute.
-
Method Details
-
sourceSubresource
- Specified by:
sourceSubresourcein interfaceVulkanImageBlitType- Returns:
- The subresource to blit from
-
sourceOffset0
- Specified by:
sourceOffset0in interfaceVulkanImageBlitType- Returns:
- A corner of the source region
-
sourceOffset1
- Specified by:
sourceOffset1in interfaceVulkanImageBlitType- Returns:
- A corner of the source region
-
targetSubresource
- Specified by:
targetSubresourcein interfaceVulkanImageBlitType- Returns:
- The subresource to blit to
-
targetOffset0
- Specified by:
targetOffset0in interfaceVulkanImageBlitType- Returns:
- A corner of the target region
-
targetOffset1
- Specified by:
targetOffset1in interfaceVulkanImageBlitType- Returns:
- A corner of the target 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 or the
thisobject
-
withSourceOffset0
Copy the current immutable object by setting a value for thesourceOffset0attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceOffset0- Returns:
- A modified copy or the
thisobject
-
withSourceOffset1
Copy the current immutable object by setting a value for thesourceOffset1attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceOffset1- Returns:
- A modified copy or 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 or the
thisobject
-
withTargetOffset0
Copy the current immutable object by setting a value for thetargetOffset0attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetOffset0- Returns:
- A modified copy or the
thisobject
-
withTargetOffset1
Copy the current immutable object by setting a value for thetargetOffset1attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetOffset1- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanImageBlitTypevalue. 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 VulkanImageBlit instance
-
builder
Creates a builder forVulkanImageBlit.VulkanImageBlit.builder() .setSourceSubresource(com.io7m.jcoronado.api.VulkanImageSubresourceLayers) // required
sourceSubresource.setSourceOffset0(com.io7m.jcoronado.api.VulkanOffset3D) // requiredsourceOffset0.setSourceOffset1(com.io7m.jcoronado.api.VulkanOffset3D) // requiredsourceOffset1.setTargetSubresource(com.io7m.jcoronado.api.VulkanImageSubresourceLayers) // requiredtargetSubresource.setTargetOffset0(com.io7m.jcoronado.api.VulkanOffset3D) // requiredtargetOffset0.setTargetOffset1(com.io7m.jcoronado.api.VulkanOffset3D) // requiredtargetOffset1.build();- Returns:
- A new VulkanImageBlit builder
-