Class VulkanPresentInfoKHR
java.lang.Object
com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanPresentInfoKHR
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPresentInfoKHR. -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanPresentInfoKHR.Builderbuilder()Creates a builder forVulkanPresentInfoKHR.static VulkanPresentInfoKHRcopyOf(VulkanPresentInfoKHRType instance) Creates an immutable copy of aVulkanPresentInfoKHRTypevalue.booleanThis instance is equal to all instances ofVulkanPresentInfoKHRthat have equal attribute values.inthashCode()Computes a hash code from attributes:waitSemaphores,swapChains,imageIndices.Each entry in this array identifies the image to present on the corresponding entry in theswapChains()list.static VulkanPresentInfoKHRof(Iterable<? extends VulkanSemaphoreType> waitSemaphores, Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, Iterable<Integer> imageIndices) Construct a new immutableVulkanPresentInfoKHRinstance.static VulkanPresentInfoKHRof(List<VulkanSemaphoreType> waitSemaphores, List<VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, List<Integer> imageIndices) Construct a new immutableVulkanPresentInfoKHRinstance.toString()Prints the immutable valueVulkanPresentInfoKHRwith attribute values.final VulkanPresentInfoKHRwithImageIndices(int... elements) Copy the current immutable object with elements that replace the content ofimageIndices.final VulkanPresentInfoKHRwithImageIndices(Iterable<Integer> elements) Copy the current immutable object with elements that replace the content ofimageIndices.final VulkanPresentInfoKHRCopy the current immutable object with elements that replace the content ofswapChains.final VulkanPresentInfoKHRwithSwapChains(Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> elements) Copy the current immutable object with elements that replace the content ofswapChains.final VulkanPresentInfoKHRwithWaitSemaphores(VulkanSemaphoreType... elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.final VulkanPresentInfoKHRwithWaitSemaphores(Iterable<? extends VulkanSemaphoreType> elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.
-
Method Details
-
waitSemaphores
- Specified by:
waitSemaphoresin interfaceVulkanPresentInfoKHRType- Returns:
- The semaphores upon which to wait before issuing the present request.
-
swapChains
- Specified by:
swapChainsin interfaceVulkanPresentInfoKHRType- Returns:
- The list of swapchains
-
imageIndices
Each entry in this array identifies the image to present on the corresponding entry in theswapChains()list.- Specified by:
imageIndicesin interfaceVulkanPresentInfoKHRType- Returns:
- An array of images to be presented
-
withWaitSemaphores
Copy the current immutable object with elements that replace the content ofwaitSemaphores.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withWaitSemaphores
public final VulkanPresentInfoKHR withWaitSemaphores(Iterable<? extends VulkanSemaphoreType> elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of waitSemaphores elements to set- Returns:
- A modified copy of
thisobject
-
withSwapChains
public final VulkanPresentInfoKHR withSwapChains(VulkanExtKHRSwapChainType.VulkanKHRSwapChainType... elements) Copy the current immutable object with elements that replace the content ofswapChains.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSwapChains
public final VulkanPresentInfoKHR withSwapChains(Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> elements) Copy the current immutable object with elements that replace the content ofswapChains. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of swapChains elements to set- Returns:
- A modified copy of
thisobject
-
withImageIndices
Copy the current immutable object with elements that replace the content ofimageIndices.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withImageIndices
Copy the current immutable object with elements that replace the content ofimageIndices. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of imageIndices elements to set- Returns:
- A modified copy of
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanPresentInfoKHR of(List<VulkanSemaphoreType> waitSemaphores, List<VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, List<Integer> imageIndices) Construct a new immutableVulkanPresentInfoKHRinstance.- Parameters:
waitSemaphores- The value for thewaitSemaphoresattributeswapChains- The value for theswapChainsattributeimageIndices- The value for theimageIndicesattribute- Returns:
- An immutable VulkanPresentInfoKHR instance
-
of
public static VulkanPresentInfoKHR of(Iterable<? extends VulkanSemaphoreType> waitSemaphores, Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, Iterable<Integer> imageIndices) Construct a new immutableVulkanPresentInfoKHRinstance.- Parameters:
waitSemaphores- The value for thewaitSemaphoresattributeswapChains- The value for theswapChainsattributeimageIndices- The value for theimageIndicesattribute- Returns:
- An immutable VulkanPresentInfoKHR instance
-
copyOf
Creates an immutable copy of aVulkanPresentInfoKHRTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanPresentInfoKHR instance
-
builder
Creates a builder forVulkanPresentInfoKHR.VulkanPresentInfoKHR.builder() .addWaitSemaphores|addAllWaitSemaphores(com.io7m.jcoronado.api.VulkanSemaphoreType) //waitSemaphoreselements .addSwapChains|addAllSwapChains(com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanExtKHRSwapChainType.VulkanKHRSwapChainType) //swapChainselements .addImageIndices|addAllImageIndices(int) //imageIndiceselements .build();- Returns:
- A new VulkanPresentInfoKHR builder
-