Class VulkanLWJGLQueue
java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLQueue
- All Implemented Interfaces:
VulkanHandleDispatchableType, VulkanHandleType, VulkanQueueType, AutoCloseable
LWJGL
VkQueue-
Method Summary
Modifier and TypeMethodDescriptionprotected final voidfinal voidclose()Destroy the object.protected voidfinal booleanfinal longhandle()final inthashCode()final booleanisClosed()protected org.slf4j.Loggerlogger()org.lwjgl.vulkan.VkQueuerawQueue()voidSet the object name for debugging.voidsubmit(List<VulkanSubmitInfo> submissions, Optional<VulkanFenceType> fence) Submit the given list of queue submissions.final StringtoString()voidwaitIdle()Wait until all items in the given queue have finished executing.Methods inherited from interface VulkanHandleType
close, isClosedMethods inherited from interface VulkanQueueType
queueFamilyIndex, submit
-
Method Details
-
rawQueue
public org.lwjgl.vulkan.VkQueue rawQueue()- Returns:
- The underlying Vulkan queue
-
logger
protected org.slf4j.Logger logger() -
closeActual
protected void closeActual() -
queueFamilyProperties
- Specified by:
queueFamilyPropertiesin interfaceVulkanQueueType- Returns:
- The properties for the queue family to which this queue belongs
-
queueIndex
- Specified by:
queueIndexin interfaceVulkanQueueType- Returns:
- The index of the queue within the queue family to which it belongs
-
submit
public void submit(List<VulkanSubmitInfo> submissions, Optional<VulkanFenceType> fence) throws VulkanException Description copied from interface:VulkanQueueTypeSubmit 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:
submitin interfaceVulkanQueueType- Parameters:
submissions- The queue submissionsfence- A fence- Throws:
VulkanException- On errors
-
waitIdle
Description copied from interface:VulkanQueueTypeWait until all items in the given queue have finished executing.- Specified by:
waitIdlein interfaceVulkanQueueType- Throws:
VulkanException- On errors
-
hostAllocatorProxy
- Returns:
- The underlying host allocator proxy
-
isClosed
public final boolean isClosed()- Specified by:
isClosedin interfaceVulkanHandleType- Returns:
trueiff the handle has been destroyed withVulkanHandleType.close()- See Also:
-
close
public final void close()Description copied from interface:VulkanHandleTypeDestroy the object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVulkanHandleType
-
equals
-
hashCode
-
toString
-
handle
public final long handle()- Returns:
- The raw handle
-
checkNotClosed
- Throws:
VulkanDestroyedException
-
setName
-