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.Builderfrom(VulkanImageBlitType instance) Fill a builder with attribute values from the providedVulkanImageBlitTypeinstance.final VulkanImageBlit.BuildersetSourceOffset0(VulkanOffset3D sourceOffset0) Initializes the value for thesourceOffset0attribute.final VulkanImageBlit.BuildersetSourceOffset1(VulkanOffset3D sourceOffset1) Initializes the value for thesourceOffset1attribute.final VulkanImageBlit.BuildersetSourceSubresource(VulkanImageSubresourceLayers sourceSubresource) Initializes the value for thesourceSubresourceattribute.final VulkanImageBlit.BuildersetTargetOffset0(VulkanOffset3D targetOffset0) Initializes the value for thetargetOffset0attribute.final VulkanImageBlit.BuildersetTargetOffset1(VulkanOffset3D targetOffset1) Initializes the value for thetargetOffset1attribute.final VulkanImageBlit.BuildersetTargetSubresource(VulkanImageSubresourceLayers targetSubresource) Initializes the value for thetargetSubresourceattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanImageBlitTypeinstance. 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:
thisbuilder for use in a chained invocation
-
setSourceSubresource
public final VulkanImageBlit.Builder setSourceSubresource(VulkanImageSubresourceLayers sourceSubresource) Initializes the value for thesourceSubresourceattribute.- Parameters:
sourceSubresource- The value for sourceSubresource- Returns:
thisbuilder for use in a chained invocation
-
setSourceOffset0
Initializes the value for thesourceOffset0attribute.- Parameters:
sourceOffset0- The value for sourceOffset0- Returns:
thisbuilder for use in a chained invocation
-
setSourceOffset1
Initializes the value for thesourceOffset1attribute.- Parameters:
sourceOffset1- The value for sourceOffset1- Returns:
thisbuilder for use in a chained invocation
-
setTargetSubresource
public final VulkanImageBlit.Builder setTargetSubresource(VulkanImageSubresourceLayers targetSubresource) Initializes the value for thetargetSubresourceattribute.- Parameters:
targetSubresource- The value for targetSubresource- Returns:
thisbuilder for use in a chained invocation
-
setTargetOffset0
Initializes the value for thetargetOffset0attribute.- Parameters:
targetOffset0- The value for targetOffset0- Returns:
thisbuilder for use in a chained invocation
-
setTargetOffset1
Initializes the value for thetargetOffset1attribute.- Parameters:
targetOffset1- The value for targetOffset1- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanImageBlit.- Returns:
- An immutable instance of VulkanImageBlit
- Throws:
IllegalStateException- if any required attributes are missing
-