Class VulkanLogicalDeviceCreateInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanLogicalDeviceCreateInfo.Builder
- Enclosing class:
VulkanLogicalDeviceCreateInfo
Builds instances of type
VulkanLogicalDeviceCreateInfo.
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 TypeMethodDescriptionaddAllEnabledExtensions(Iterable<String> elements) Adds elements toenabledExtensionslist.addAllEnabledLayers(Iterable<String> elements) Adds elements toenabledLayerslist.addAllFlags(Iterable<VulkanLogicalDeviceCreateFlag> elements) Adds elements toflagsset.addAllQueueCreateInfos(Iterable<? extends VulkanLogicalDeviceQueueCreateInfo> elements) Adds elements toqueueCreateInfoslist.addEnabledExtensions(String element) Adds one element toenabledExtensionslist.addEnabledExtensions(String... elements) Adds elements toenabledExtensionslist.addEnabledLayers(String element) Adds one element toenabledLayerslist.addEnabledLayers(String... elements) Adds elements toenabledLayerslist.addFlags(VulkanLogicalDeviceCreateFlag element) Adds one element toflagsset.addFlags(VulkanLogicalDeviceCreateFlag... elements) Adds elements toflagsset.Adds one element toqueueCreateInfoslist.addQueueCreateInfos(VulkanLogicalDeviceQueueCreateInfo... elements) Adds elements toqueueCreateInfoslist.build()Builds a newVulkanLogicalDeviceCreateInfo.from(VulkanLogicalDeviceCreateInfoType instance) Fill a builder with attribute values from the providedVulkanLogicalDeviceCreateInfoTypeinstance.setEnabledExtensions(Iterable<String> elements) Sets or replaces all elements forenabledExtensionslist.setEnabledLayers(Iterable<String> elements) Sets or replaces all elements forenabledLayerslist.setFeatures(VulkanPhysicalDeviceFeatures features) Initializes the optional valuefeaturesto features.setFeatures(Optional<? extends VulkanPhysicalDeviceFeatures> features) Initializes the optional valuefeaturesto features.setFlags(Iterable<VulkanLogicalDeviceCreateFlag> elements) Sets or replaces all elements forflagsset.setQueueCreateInfos(Iterable<? extends VulkanLogicalDeviceQueueCreateInfo> elements) Sets or replaces all elements forqueueCreateInfoslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanLogicalDeviceCreateInfoTypeinstance. 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:
thisbuilder for use in a chained invocation
-
addFlags
Adds one element toflagsset.- Parameters:
element- A flags element- Returns:
thisbuilder for use in a chained invocation
-
addFlags
public final VulkanLogicalDeviceCreateInfo.Builder addFlags(VulkanLogicalDeviceCreateFlag... elements) Adds elements toflagsset.- Parameters:
elements- An array of flags elements- Returns:
thisbuilder for use in a chained invocation
-
setFlags
public final VulkanLogicalDeviceCreateInfo.Builder setFlags(Iterable<VulkanLogicalDeviceCreateFlag> elements) Sets or replaces all elements forflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFlags
public final VulkanLogicalDeviceCreateInfo.Builder addAllFlags(Iterable<VulkanLogicalDeviceCreateFlag> elements) Adds elements toflagsset.- Parameters:
elements- An iterable of flags elements- Returns:
thisbuilder for use in a chained invocation
-
addQueueCreateInfos
public final VulkanLogicalDeviceCreateInfo.Builder addQueueCreateInfos(VulkanLogicalDeviceQueueCreateInfo element) Adds one element toqueueCreateInfoslist.- Parameters:
element- A queueCreateInfos element- Returns:
thisbuilder for use in a chained invocation
-
addQueueCreateInfos
public final VulkanLogicalDeviceCreateInfo.Builder addQueueCreateInfos(VulkanLogicalDeviceQueueCreateInfo... elements) Adds elements toqueueCreateInfoslist.- Parameters:
elements- An array of queueCreateInfos elements- Returns:
thisbuilder for use in a chained invocation
-
setQueueCreateInfos
public final VulkanLogicalDeviceCreateInfo.Builder setQueueCreateInfos(Iterable<? extends VulkanLogicalDeviceQueueCreateInfo> elements) Sets or replaces all elements forqueueCreateInfoslist.- Parameters:
elements- An iterable of queueCreateInfos elements- Returns:
thisbuilder for use in a chained invocation
-
addAllQueueCreateInfos
public final VulkanLogicalDeviceCreateInfo.Builder addAllQueueCreateInfos(Iterable<? extends VulkanLogicalDeviceQueueCreateInfo> elements) Adds elements toqueueCreateInfoslist.- Parameters:
elements- An iterable of queueCreateInfos elements- Returns:
thisbuilder for use in a chained invocation
-
addEnabledLayers
Adds one element toenabledLayerslist.- Parameters:
element- A enabledLayers element- Returns:
thisbuilder for use in a chained invocation
-
addEnabledLayers
Adds elements toenabledLayerslist.- Parameters:
elements- An array of enabledLayers elements- Returns:
thisbuilder for use in a chained invocation
-
setEnabledLayers
Sets or replaces all elements forenabledLayerslist.- Parameters:
elements- An iterable of enabledLayers elements- Returns:
thisbuilder for use in a chained invocation
-
addAllEnabledLayers
Adds elements toenabledLayerslist.- Parameters:
elements- An iterable of enabledLayers elements- Returns:
thisbuilder for use in a chained invocation
-
addEnabledExtensions
Adds one element toenabledExtensionslist.- Parameters:
element- A enabledExtensions element- Returns:
thisbuilder for use in a chained invocation
-
addEnabledExtensions
Adds elements toenabledExtensionslist.- Parameters:
elements- An array of enabledExtensions elements- Returns:
thisbuilder for use in a chained invocation
-
setEnabledExtensions
Sets or replaces all elements forenabledExtensionslist.- Parameters:
elements- An iterable of enabledExtensions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllEnabledExtensions
public final VulkanLogicalDeviceCreateInfo.Builder addAllEnabledExtensions(Iterable<String> elements) Adds elements toenabledExtensionslist.- Parameters:
elements- An iterable of enabledExtensions elements- Returns:
thisbuilder for use in a chained invocation
-
setFeatures
public final VulkanLogicalDeviceCreateInfo.Builder setFeatures(VulkanPhysicalDeviceFeatures features) Initializes the optional valuefeaturesto features.- Parameters:
features- The value for features- Returns:
thisbuilder for chained invocation
-
setFeatures
public final VulkanLogicalDeviceCreateInfo.Builder setFeatures(Optional<? extends VulkanPhysicalDeviceFeatures> features) Initializes the optional valuefeaturesto features.- Parameters:
features- The value for features- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanLogicalDeviceCreateInfo.- Returns:
- An immutable instance of VulkanLogicalDeviceCreateInfo
- Throws:
IllegalStateException- if any required attributes are missing
-