- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanBufferImageCopy.Builder
-
- Enclosing class:
- VulkanBufferImageCopy
public static final class VulkanBufferImageCopy.Builder extends java.lang.Object
Builds instances of typeVulkanBufferImageCopy
. Initialize attributes and then invoke thebuild()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VulkanBufferImageCopy
build()
Builds a newVulkanBufferImageCopy
.VulkanBufferImageCopy.Builder
from(VulkanBufferImageCopyType instance)
Fill a builder with attribute values from the providedVulkanBufferImageCopyType
instance.VulkanBufferImageCopy.Builder
setBufferImageHeight(int bufferImageHeight)
Initializes the value for thebufferImageHeight
attribute.VulkanBufferImageCopy.Builder
setBufferOffset(long bufferOffset)
Initializes the value for thebufferOffset
attribute.VulkanBufferImageCopy.Builder
setBufferRowLength(int bufferRowLength)
Initializes the value for thebufferRowLength
attribute.VulkanBufferImageCopy.Builder
setImageExtent(VulkanExtent3D imageExtent)
Initializes the value for theimageExtent
attribute.VulkanBufferImageCopy.Builder
setImageOffset(VulkanOffset3D imageOffset)
Initializes the value for theimageOffset
attribute.VulkanBufferImageCopy.Builder
setImageSubresource(VulkanImageSubresourceLayers imageSubresource)
Initializes the value for theimageSubresource
attribute.
-
-
-
Method Detail
-
from
public final VulkanBufferImageCopy.Builder from(VulkanBufferImageCopyType instance)
Fill a builder with attribute values from the providedVulkanBufferImageCopyType
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
-
setBufferOffset
public final VulkanBufferImageCopy.Builder setBufferOffset(long bufferOffset)
Initializes the value for thebufferOffset
attribute.- Parameters:
bufferOffset
- The value for bufferOffset- Returns:
this
builder for use in a chained invocation
-
setBufferRowLength
public final VulkanBufferImageCopy.Builder setBufferRowLength(int bufferRowLength)
Initializes the value for thebufferRowLength
attribute.- Parameters:
bufferRowLength
- The value for bufferRowLength- Returns:
this
builder for use in a chained invocation
-
setBufferImageHeight
public final VulkanBufferImageCopy.Builder setBufferImageHeight(int bufferImageHeight)
Initializes the value for thebufferImageHeight
attribute.- Parameters:
bufferImageHeight
- The value for bufferImageHeight- Returns:
this
builder for use in a chained invocation
-
setImageSubresource
public final VulkanBufferImageCopy.Builder setImageSubresource(VulkanImageSubresourceLayers imageSubresource)
Initializes the value for theimageSubresource
attribute.- Parameters:
imageSubresource
- The value for imageSubresource- Returns:
this
builder for use in a chained invocation
-
setImageOffset
public final VulkanBufferImageCopy.Builder setImageOffset(VulkanOffset3D imageOffset)
Initializes the value for theimageOffset
attribute.- Parameters:
imageOffset
- The value for imageOffset- Returns:
this
builder for use in a chained invocation
-
setImageExtent
public final VulkanBufferImageCopy.Builder setImageExtent(VulkanExtent3D imageExtent)
Initializes the value for theimageExtent
attribute.- Parameters:
imageExtent
- The value for imageExtent- Returns:
this
builder for use in a chained invocation
-
build
public VulkanBufferImageCopy build()
Builds a newVulkanBufferImageCopy
.- Returns:
- An immutable instance of VulkanBufferImageCopy
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-