Class VulkanPresentInfoKHR
- java.lang.Object
-
- com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanPresentInfoKHR
-
- All Implemented Interfaces:
VulkanPresentInfoKHRType
public final class VulkanPresentInfoKHR extends java.lang.Object implements VulkanPresentInfoKHRType
- See Also:
- "VkPresentInfoKHR"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPresentInfoKHR.Builder
Builds instances of typeVulkanPresentInfoKHR
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanPresentInfoKHR.Builder
builder()
Creates a builder forVulkanPresentInfoKHR
.static VulkanPresentInfoKHR
copyOf(VulkanPresentInfoKHRType instance)
Creates an immutable copy of aVulkanPresentInfoKHRType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPresentInfoKHR
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:waitSemaphores
,swapChains
,imageIndices
.java.util.List<java.lang.Integer>
imageIndices()
Each entry in this array identifies the image to present on the corresponding entry in theswapChains()
list.static VulkanPresentInfoKHR
of(java.lang.Iterable<? extends VulkanSemaphoreType> waitSemaphores, java.lang.Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, java.lang.Iterable<java.lang.Integer> imageIndices)
Construct a new immutableVulkanPresentInfoKHR
instance.static VulkanPresentInfoKHR
of(java.util.List<VulkanSemaphoreType> waitSemaphores, java.util.List<VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, java.util.List<java.lang.Integer> imageIndices)
Construct a new immutableVulkanPresentInfoKHR
instance.java.util.List<VulkanExtKHRSwapChainType.VulkanKHRSwapChainType>
swapChains()
java.lang.String
toString()
Prints the immutable valueVulkanPresentInfoKHR
with attribute values.java.util.List<VulkanSemaphoreType>
waitSemaphores()
VulkanPresentInfoKHR
withImageIndices(int... elements)
Copy the current immutable object with elements that replace the content ofimageIndices
.VulkanPresentInfoKHR
withImageIndices(java.lang.Iterable<java.lang.Integer> elements)
Copy the current immutable object with elements that replace the content ofimageIndices
.VulkanPresentInfoKHR
withSwapChains(VulkanExtKHRSwapChainType.VulkanKHRSwapChainType... elements)
Copy the current immutable object with elements that replace the content ofswapChains
.VulkanPresentInfoKHR
withSwapChains(java.lang.Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> elements)
Copy the current immutable object with elements that replace the content ofswapChains
.VulkanPresentInfoKHR
withWaitSemaphores(VulkanSemaphoreType... elements)
Copy the current immutable object with elements that replace the content ofwaitSemaphores
.VulkanPresentInfoKHR
withWaitSemaphores(java.lang.Iterable<? extends VulkanSemaphoreType> elements)
Copy the current immutable object with elements that replace the content ofwaitSemaphores
.
-
-
-
Method Detail
-
waitSemaphores
public java.util.List<VulkanSemaphoreType> waitSemaphores()
- Specified by:
waitSemaphores
in interfaceVulkanPresentInfoKHRType
- Returns:
- The semaphores upon which to wait before issuing the present request.
-
swapChains
public java.util.List<VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains()
- Specified by:
swapChains
in interfaceVulkanPresentInfoKHRType
- Returns:
- The list of swapchains
-
imageIndices
public java.util.List<java.lang.Integer> imageIndices()
Each entry in this array identifies the image to present on the corresponding entry in theswapChains()
list.- Specified by:
imageIndices
in interfaceVulkanPresentInfoKHRType
- Returns:
- An array of images to be presented
-
withWaitSemaphores
public final VulkanPresentInfoKHR withWaitSemaphores(VulkanSemaphoreType... elements)
Copy the current immutable object with elements that replace the content ofwaitSemaphores
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withWaitSemaphores
public final VulkanPresentInfoKHR withWaitSemaphores(java.lang.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
this
object
-
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
this
object
-
withSwapChains
public final VulkanPresentInfoKHR withSwapChains(java.lang.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
this
object
-
withImageIndices
public final VulkanPresentInfoKHR withImageIndices(int... elements)
Copy the current immutable object with elements that replace the content ofimageIndices
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withImageIndices
public final VulkanPresentInfoKHR withImageIndices(java.lang.Iterable<java.lang.Integer> elements)
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
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPresentInfoKHR
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:waitSemaphores
,swapChains
,imageIndices
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPresentInfoKHR
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPresentInfoKHR of(java.util.List<VulkanSemaphoreType> waitSemaphores, java.util.List<VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, java.util.List<java.lang.Integer> imageIndices)
Construct a new immutableVulkanPresentInfoKHR
instance.- Parameters:
waitSemaphores
- The value for thewaitSemaphores
attributeswapChains
- The value for theswapChains
attributeimageIndices
- The value for theimageIndices
attribute- Returns:
- An immutable VulkanPresentInfoKHR instance
-
of
public static VulkanPresentInfoKHR of(java.lang.Iterable<? extends VulkanSemaphoreType> waitSemaphores, java.lang.Iterable<? extends VulkanExtKHRSwapChainType.VulkanKHRSwapChainType> swapChains, java.lang.Iterable<java.lang.Integer> imageIndices)
Construct a new immutableVulkanPresentInfoKHR
instance.- Parameters:
waitSemaphores
- The value for thewaitSemaphores
attributeswapChains
- The value for theswapChains
attributeimageIndices
- The value for theimageIndices
attribute- Returns:
- An immutable VulkanPresentInfoKHR instance
-
copyOf
public static VulkanPresentInfoKHR copyOf(VulkanPresentInfoKHRType instance)
Creates an immutable copy of aVulkanPresentInfoKHRType
value. 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
public static VulkanPresentInfoKHR.Builder builder()
Creates a builder forVulkanPresentInfoKHR
.- Returns:
- A new VulkanPresentInfoKHR builder
-
-