Class VulkanImageBlit.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanImageBlit.Builder
- Enclosing class:
VulkanImageBlit
Builds instances of type
VulkanImageBlit
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newVulkanImageBlit
.final VulkanImageBlit.Builder
from
(VulkanImageBlitType instance) Fill a builder with attribute values from the providedVulkanImageBlitType
instance.final VulkanImageBlit.Builder
setSourceOffset0
(VulkanOffset3D sourceOffset0) Initializes the value for thesourceOffset0
attribute.final VulkanImageBlit.Builder
setSourceOffset1
(VulkanOffset3D sourceOffset1) Initializes the value for thesourceOffset1
attribute.final VulkanImageBlit.Builder
setSourceSubresource
(VulkanImageSubresourceLayers sourceSubresource) Initializes the value for thesourceSubresource
attribute.final VulkanImageBlit.Builder
setTargetOffset0
(VulkanOffset3D targetOffset0) Initializes the value for thetargetOffset0
attribute.final VulkanImageBlit.Builder
setTargetOffset1
(VulkanOffset3D targetOffset1) Initializes the value for thetargetOffset1
attribute.final VulkanImageBlit.Builder
setTargetSubresource
(VulkanImageSubresourceLayers targetSubresource) Initializes the value for thetargetSubresource
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanImageBlitType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setSourceSubresource
public final VulkanImageBlit.Builder setSourceSubresource(VulkanImageSubresourceLayers sourceSubresource) Initializes the value for thesourceSubresource
attribute.- Parameters:
sourceSubresource
- The value for sourceSubresource- Returns:
this
builder for use in a chained invocation
-
setSourceOffset0
Initializes the value for thesourceOffset0
attribute.- Parameters:
sourceOffset0
- The value for sourceOffset0- Returns:
this
builder for use in a chained invocation
-
setSourceOffset1
Initializes the value for thesourceOffset1
attribute.- Parameters:
sourceOffset1
- The value for sourceOffset1- Returns:
this
builder for use in a chained invocation
-
setTargetSubresource
public final VulkanImageBlit.Builder setTargetSubresource(VulkanImageSubresourceLayers targetSubresource) Initializes the value for thetargetSubresource
attribute.- Parameters:
targetSubresource
- The value for targetSubresource- Returns:
this
builder for use in a chained invocation
-
setTargetOffset0
Initializes the value for thetargetOffset0
attribute.- Parameters:
targetOffset0
- The value for targetOffset0- Returns:
this
builder for use in a chained invocation
-
setTargetOffset1
Initializes the value for thetargetOffset1
attribute.- Parameters:
targetOffset1
- The value for targetOffset1- Returns:
this
builder for use in a chained invocation
-
build
Builds a newVulkanImageBlit
.- Returns:
- An immutable instance of VulkanImageBlit
- Throws:
IllegalStateException
- if any required attributes are missing
-