Class VulkanPresentInfoKHR.Builder
java.lang.Object
com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanPresentInfoKHR.Builder
- Enclosing class:
VulkanPresentInfoKHR
Builds instances of type
VulkanPresentInfoKHR.
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 TypeMethodDescriptionaddAllFences(Iterable<? extends VulkanFenceType> elements) Adds elements tofenceslist.addAllImageIndices(Iterable<Integer> elements) Adds elements toimageIndiceslist.addAllSwapChains(Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> elements) Adds elements toswapChainslist.addAllWaitSemaphores(Iterable<? extends VulkanSemaphoreBinaryType> elements) Adds elements towaitSemaphoreslist.addFences(VulkanFenceType element) Adds one element tofenceslist.addFences(VulkanFenceType... elements) Adds elements tofenceslist.addImageIndices(int element) Adds one element toimageIndiceslist.addImageIndices(int... elements) Adds elements toimageIndiceslist.Adds one element toswapChainslist.Adds elements toswapChainslist.Adds one element towaitSemaphoreslist.addWaitSemaphores(VulkanSemaphoreBinaryType... elements) Adds elements towaitSemaphoreslist.build()Builds a newVulkanPresentInfoKHR.from(VulkanPresentInfoKHRType instance) Fill a builder with attribute values from the providedVulkanPresentInfoKHRTypeinstance.setFences(Iterable<? extends VulkanFenceType> elements) Sets or replaces all elements forfenceslist.setImageIndices(Iterable<Integer> elements) Sets or replaces all elements forimageIndiceslist.setSwapChains(Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> elements) Sets or replaces all elements forswapChainslist.setWaitSemaphores(Iterable<? extends VulkanSemaphoreBinaryType> elements) Sets or replaces all elements forwaitSemaphoreslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanPresentInfoKHRTypeinstance. 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
-
addWaitSemaphores
Adds one element towaitSemaphoreslist.- Parameters:
element- A waitSemaphores element- Returns:
thisbuilder for use in a chained invocation
-
addWaitSemaphores
Adds elements towaitSemaphoreslist.- Parameters:
elements- An array of waitSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
setWaitSemaphores
public final VulkanPresentInfoKHR.Builder setWaitSemaphores(Iterable<? extends VulkanSemaphoreBinaryType> elements) Sets or replaces all elements forwaitSemaphoreslist.- Parameters:
elements- An iterable of waitSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
addAllWaitSemaphores
public final VulkanPresentInfoKHR.Builder addAllWaitSemaphores(Iterable<? extends VulkanSemaphoreBinaryType> elements) Adds elements towaitSemaphoreslist.- Parameters:
elements- An iterable of waitSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
addSwapChains
public final VulkanPresentInfoKHR.Builder addSwapChains(VulkanExtKHRSwapChainType.VulkanKHRSwapChainType element) Adds one element toswapChainslist.- Parameters:
element- A swapChains element- Returns:
thisbuilder for use in a chained invocation
-
addSwapChains
public final VulkanPresentInfoKHR.Builder addSwapChains(VulkanExtKHRSwapChainType.VulkanKHRSwapChainType... elements) Adds elements toswapChainslist.- Parameters:
elements- An array of swapChains elements- Returns:
thisbuilder for use in a chained invocation
-
setSwapChains
public final VulkanPresentInfoKHR.Builder setSwapChains(Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> elements) Sets or replaces all elements forswapChainslist.- Parameters:
elements- An iterable of swapChains elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSwapChains
public final VulkanPresentInfoKHR.Builder addAllSwapChains(Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> elements) Adds elements toswapChainslist.- Parameters:
elements- An iterable of swapChains elements- Returns:
thisbuilder for use in a chained invocation
-
addImageIndices
Adds one element toimageIndiceslist.- Parameters:
element- A imageIndices element- Returns:
thisbuilder for use in a chained invocation
-
addImageIndices
Adds elements toimageIndiceslist.- Parameters:
elements- An array of imageIndices elements- Returns:
thisbuilder for use in a chained invocation
-
setImageIndices
Sets or replaces all elements forimageIndiceslist.- Parameters:
elements- An iterable of imageIndices elements- Returns:
thisbuilder for use in a chained invocation
-
addAllImageIndices
Adds elements toimageIndiceslist.- Parameters:
elements- An iterable of imageIndices elements- Returns:
thisbuilder for use in a chained invocation
-
addFences
Adds one element tofenceslist.- Parameters:
element- A fences element- Returns:
thisbuilder for use in a chained invocation
-
addFences
Adds elements tofenceslist.- Parameters:
elements- An array of fences elements- Returns:
thisbuilder for use in a chained invocation
-
setFences
Sets or replaces all elements forfenceslist.- Parameters:
elements- An iterable of fences elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFences
public final VulkanPresentInfoKHR.Builder addAllFences(Iterable<? extends VulkanFenceType> elements) Adds elements tofenceslist.- Parameters:
elements- An iterable of fences elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanPresentInfoKHR.- Returns:
- An immutable instance of VulkanPresentInfoKHR
- Throws:
IllegalStateException- if any required attributes are missing
-