- java.lang.Object
-
- com.io7m.jcoronado.lwjgl.VulkanLWJGLQueue
-
- All Implemented Interfaces:
VulkanHandleDispatchableType
,VulkanHandleType
,VulkanQueueType
,java.lang.AutoCloseable
public final class VulkanLWJGLQueue extends java.lang.Object implements VulkanQueueType
LWJGLVkQueue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkNotClosed()
void
close()
Destroy the object.protected void
closeActual()
boolean
equals(java.lang.Object o)
int
hashCode()
protected VulkanLWJGLHostAllocatorProxy
hostAllocatorProxy()
boolean
isClosed()
protected org.slf4j.Logger
logger()
VulkanQueueFamilyProperties
queueFamilyProperties()
int
queueIndex()
org.lwjgl.vulkan.VkQueue
rawQueue()
void
submit(java.util.List<VulkanSubmitInfo> submissions, java.util.Optional<VulkanFenceType> fence)
Submit the given list of queue submissions.java.lang.String
toString()
void
waitIdle()
Wait until all items in the given queue have finished executing.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanHandleType
close, isClosed
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanQueueType
submit
-
-
-
-
Method Detail
-
rawQueue
public org.lwjgl.vulkan.VkQueue rawQueue()
- Returns:
- The underlying Vulkan queue
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
logger
protected org.slf4j.Logger logger()
-
closeActual
protected void closeActual()
-
queueFamilyProperties
public VulkanQueueFamilyProperties queueFamilyProperties()
- Specified by:
queueFamilyProperties
in interfaceVulkanQueueType
- Returns:
- The properties for the queue family to which this queue belongs
-
queueIndex
public int queueIndex()
- Specified by:
queueIndex
in interfaceVulkanQueueType
- Returns:
- The index of the queue within the queue family to which it belongs
-
submit
public void submit(java.util.List<VulkanSubmitInfo> submissions, java.util.Optional<VulkanFenceType> fence) throws VulkanException
Description copied from interface:VulkanQueueType
Submit the given list of queue submissions. If a fence is provided, the fence is signalled when all of the command buffers have finished executing.- Specified by:
submit
in interfaceVulkanQueueType
- Parameters:
submissions
- The queue submissionsfence
- A fence- Throws:
VulkanException
- On errors
-
waitIdle
public void waitIdle() throws VulkanException
Description copied from interface:VulkanQueueType
Wait until all items in the given queue have finished executing.- Specified by:
waitIdle
in interfaceVulkanQueueType
- Throws:
VulkanException
- On errors
-
hostAllocatorProxy
protected final VulkanLWJGLHostAllocatorProxy hostAllocatorProxy()
-
isClosed
public final boolean isClosed()
- Specified by:
isClosed
in interfaceVulkanHandleType
- Returns:
true
iff the handle has been destroyed withVulkanHandleType.close()
- See Also:
VulkanHandleType.close()
-
close
public final void close()
Description copied from interface:VulkanHandleType
Destroy the object.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceVulkanHandleType
-
checkNotClosed
protected final void checkNotClosed() throws VulkanDestroyedException
- Throws:
VulkanDestroyedException
-
-