- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanImageBlit
-
- All Implemented Interfaces:
VulkanImageBlitType
public final class VulkanImageBlit extends java.lang.Object implements VulkanImageBlitType
Structure specifying an image blit operation.- See Also:
- "VkImageBlit"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanImageBlit.Builder
Builds instances of typeVulkanImageBlit
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanImageBlit.Builder
builder()
Creates a builder forVulkanImageBlit
.static VulkanImageBlit
copyOf(VulkanImageBlitType instance)
Creates an immutable copy of aVulkanImageBlitType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanImageBlit
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:sourceSubresource
,sourceOffset0
,sourceOffset1
,targetSubresource
,targetOffset0
,targetOffset1
.static VulkanImageBlit
of(VulkanImageSubresourceLayers sourceSubresource, VulkanOffset3D sourceOffset0, VulkanOffset3D sourceOffset1, VulkanImageSubresourceLayers targetSubresource, VulkanOffset3D targetOffset0, VulkanOffset3D targetOffset1)
Construct a new immutableVulkanImageBlit
instance.VulkanOffset3D
sourceOffset0()
VulkanOffset3D
sourceOffset1()
VulkanImageSubresourceLayers
sourceSubresource()
VulkanOffset3D
targetOffset0()
VulkanOffset3D
targetOffset1()
VulkanImageSubresourceLayers
targetSubresource()
java.lang.String
toString()
Prints the immutable valueVulkanImageBlit
with attribute values.VulkanImageBlit
withSourceOffset0(VulkanOffset3D value)
Copy the current immutable object by setting a value for thesourceOffset0
attribute.VulkanImageBlit
withSourceOffset1(VulkanOffset3D value)
Copy the current immutable object by setting a value for thesourceOffset1
attribute.VulkanImageBlit
withSourceSubresource(VulkanImageSubresourceLayers value)
Copy the current immutable object by setting a value for thesourceSubresource
attribute.VulkanImageBlit
withTargetOffset0(VulkanOffset3D value)
Copy the current immutable object by setting a value for thetargetOffset0
attribute.VulkanImageBlit
withTargetOffset1(VulkanOffset3D value)
Copy the current immutable object by setting a value for thetargetOffset1
attribute.VulkanImageBlit
withTargetSubresource(VulkanImageSubresourceLayers value)
Copy the current immutable object by setting a value for thetargetSubresource
attribute.
-
-
-
Method Detail
-
sourceSubresource
public VulkanImageSubresourceLayers sourceSubresource()
- Specified by:
sourceSubresource
in interfaceVulkanImageBlitType
- Returns:
- The subresource to blit from
-
sourceOffset0
public VulkanOffset3D sourceOffset0()
- Specified by:
sourceOffset0
in interfaceVulkanImageBlitType
- Returns:
- A corner of the source region
-
sourceOffset1
public VulkanOffset3D sourceOffset1()
- Specified by:
sourceOffset1
in interfaceVulkanImageBlitType
- Returns:
- A corner of the source region
-
targetSubresource
public VulkanImageSubresourceLayers targetSubresource()
- Specified by:
targetSubresource
in interfaceVulkanImageBlitType
- Returns:
- The subresource to blit to
-
targetOffset0
public VulkanOffset3D targetOffset0()
- Specified by:
targetOffset0
in interfaceVulkanImageBlitType
- Returns:
- A corner of the target region
-
targetOffset1
public VulkanOffset3D targetOffset1()
- Specified by:
targetOffset1
in interfaceVulkanImageBlitType
- Returns:
- A corner of the target region
-
withSourceSubresource
public final VulkanImageBlit withSourceSubresource(VulkanImageSubresourceLayers value)
Copy the current immutable object by setting a value for thesourceSubresource
attribute. 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
this
object
-
withSourceOffset0
public final VulkanImageBlit withSourceOffset0(VulkanOffset3D value)
Copy the current immutable object by setting a value for thesourceOffset0
attribute. 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 of the
this
object
-
withSourceOffset1
public final VulkanImageBlit withSourceOffset1(VulkanOffset3D value)
Copy the current immutable object by setting a value for thesourceOffset1
attribute. 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 of the
this
object
-
withTargetSubresource
public final VulkanImageBlit withTargetSubresource(VulkanImageSubresourceLayers value)
Copy the current immutable object by setting a value for thetargetSubresource
attribute. 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
this
object
-
withTargetOffset0
public final VulkanImageBlit withTargetOffset0(VulkanOffset3D value)
Copy the current immutable object by setting a value for thetargetOffset0
attribute. 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 of the
this
object
-
withTargetOffset1
public final VulkanImageBlit withTargetOffset1(VulkanOffset3D value)
Copy the current immutable object by setting a value for thetargetOffset1
attribute. 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 of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanImageBlit
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:sourceSubresource
,sourceOffset0
,sourceOffset1
,targetSubresource
,targetOffset0
,targetOffset1
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanImageBlit
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanImageBlit of(VulkanImageSubresourceLayers sourceSubresource, VulkanOffset3D sourceOffset0, VulkanOffset3D sourceOffset1, VulkanImageSubresourceLayers targetSubresource, VulkanOffset3D targetOffset0, VulkanOffset3D targetOffset1)
Construct a new immutableVulkanImageBlit
instance.- Parameters:
sourceSubresource
- The value for thesourceSubresource
attributesourceOffset0
- The value for thesourceOffset0
attributesourceOffset1
- The value for thesourceOffset1
attributetargetSubresource
- The value for thetargetSubresource
attributetargetOffset0
- The value for thetargetOffset0
attributetargetOffset1
- The value for thetargetOffset1
attribute- Returns:
- An immutable VulkanImageBlit instance
-
copyOf
public static VulkanImageBlit copyOf(VulkanImageBlitType instance)
Creates an immutable copy of aVulkanImageBlitType
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 VulkanImageBlit instance
-
builder
public static VulkanImageBlit.Builder builder()
Creates a builder forVulkanImageBlit
.- Returns:
- A new VulkanImageBlit builder
-
-