Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPhysicalDeviceMemoryProperties.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPhysicalDeviceMemoryProperties.Builder
-
- Enclosing class:
- VulkanPhysicalDeviceMemoryProperties
public static final class VulkanPhysicalDeviceMemoryProperties.Builder extends java.lang.Object
Builds instances of typeVulkanPhysicalDeviceMemoryProperties
. 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
-
-
-
Method Detail
-
from
public final VulkanPhysicalDeviceMemoryProperties.Builder from(VulkanPhysicalDeviceMemoryPropertiesType instance)
Fill a builder with attribute values from the providedVulkanPhysicalDeviceMemoryPropertiesType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
addHeaps
public final VulkanPhysicalDeviceMemoryProperties.Builder addHeaps(VulkanMemoryHeap element)
Adds one element toheaps
list.- Parameters:
element
- A heaps element- Returns:
this
builder for use in a chained invocation
-
addHeaps
public final VulkanPhysicalDeviceMemoryProperties.Builder addHeaps(VulkanMemoryHeap... elements)
Adds elements toheaps
list.- Parameters:
elements
- An array of heaps elements- Returns:
this
builder for use in a chained invocation
-
setHeaps
public final VulkanPhysicalDeviceMemoryProperties.Builder setHeaps(java.lang.Iterable<? extends VulkanMemoryHeap> elements)
Sets or replaces all elements forheaps
list.- Parameters:
elements
- An iterable of heaps elements- Returns:
this
builder for use in a chained invocation
-
addAllHeaps
public final VulkanPhysicalDeviceMemoryProperties.Builder addAllHeaps(java.lang.Iterable<? extends VulkanMemoryHeap> elements)
Adds elements toheaps
list.- Parameters:
elements
- An iterable of heaps elements- Returns:
this
builder for use in a chained invocation
-
addTypes
public final VulkanPhysicalDeviceMemoryProperties.Builder addTypes(VulkanMemoryType element)
Adds one element totypes
list.- Parameters:
element
- A types element- Returns:
this
builder for use in a chained invocation
-
addTypes
public final VulkanPhysicalDeviceMemoryProperties.Builder addTypes(VulkanMemoryType... elements)
Adds elements totypes
list.- Parameters:
elements
- An array of types elements- Returns:
this
builder for use in a chained invocation
-
setTypes
public final VulkanPhysicalDeviceMemoryProperties.Builder setTypes(java.lang.Iterable<? extends VulkanMemoryType> elements)
Sets or replaces all elements fortypes
list.- Parameters:
elements
- An iterable of types elements- Returns:
this
builder for use in a chained invocation
-
addAllTypes
public final VulkanPhysicalDeviceMemoryProperties.Builder addAllTypes(java.lang.Iterable<? extends VulkanMemoryType> elements)
Adds elements totypes
list.- Parameters:
elements
- An iterable of types elements- Returns:
this
builder for use in a chained invocation
-
build
public VulkanPhysicalDeviceMemoryProperties build()
Builds a newVulkanPhysicalDeviceMemoryProperties
.- Returns:
- An immutable instance of VulkanPhysicalDeviceMemoryProperties
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-