IVulkanHost
interface IVulkanHost
Known subtypes: WindowVulkanHost, SnapshotVulkanHost
Package: dev.joid.backend.vulkan.host · Module: backend-vulkan · Source: IVulkanHost.java
Backends: Vulkan
What an application or an engine that renders with Vulkan lends JOID: the device, the queue, the command buffer of the frame and the target image.
Description
Section titled “Description”JOID records into the frame of the host instead of owning one; WindowVulkanHost and SnapshotVulkanHost are complete hosts.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getQueueFamilyIndex() abstract | Returns the family of the graphics queue. |
VkQueue | getQueue() abstract | Returns the graphics queue, on which JOID submits the uploads that it does outside a frame. |
VkDevice | getDevice() abstract | Returns the logical device, created with VK_API_VERSION_1_3. |
VkPhysicalDevice | getPhysicalDevice() abstract | Returns the physical device of the logical device. |
int | getFrameIndex() abstract | Returns the slot of the current frame, from 0 to getFramesInFlight() - 1. |
long | getFrameNumber() abstract | Returns a counter that grows by one at each frame of the host, never per JOID frame. |
int | getFramesInFlight() abstract | Returns the number of frames in flight, 1 or more. |
VkCommandBuffer | getCommandBuffer() abstract | Returns the command buffer of the current frame, recording and outside any render pass. |
int | getColorFormat() abstract | Returns the format of the target image. |
long | getTargetView() abstract | Returns the image view that JOID draws into, in COLOR_ATTACHMENT_OPTIMAL and already cleared. |
int | getTargetWidth() abstract | Returns the width of the target image, in pixels. |
int | getTargetHeight() abstract | Returns the height of the target image, in pixels. |
Method details
Section titled “Method details”getQueueFamilyIndex
Section titled “getQueueFamilyIndex”int getQueueFamilyIndex() abstract
Returns the family of the graphics queue.
getQueue
Section titled “getQueue”VkQueue getQueue() abstract
Returns the graphics queue, on which JOID submits the uploads that it does outside a frame.
getDevice
Section titled “getDevice”VkDevice getDevice() abstract
Returns the logical device, created with VK_API_VERSION_1_3.
getPhysicalDevice
Section titled “getPhysicalDevice”VkPhysicalDevice getPhysicalDevice() abstract
Returns the physical device of the logical device.
getFrameIndex
Section titled “getFrameIndex”int getFrameIndex() abstract
Returns the slot of the current frame, from 0 to getFramesInFlight() - 1.
getFrameNumber
Section titled “getFrameNumber”long getFrameNumber() abstract
Returns a counter that grows by one at each frame of the host, never per JOID frame.
getFramesInFlight
Section titled “getFramesInFlight”int getFramesInFlight() abstract
Returns the number of frames in flight, 1 or more.
getCommandBuffer
Section titled “getCommandBuffer”VkCommandBuffer getCommandBuffer() abstract
Returns the command buffer of the current frame, recording and outside any render pass.
getColorFormat
Section titled “getColorFormat”int getColorFormat() abstract
Returns the format of the target image.
getTargetView
Section titled “getTargetView”long getTargetView() abstract
Returns the image view that JOID draws into, in COLOR_ATTACHMENT_OPTIMAL and already cleared.
getTargetWidth
Section titled “getTargetWidth”int getTargetWidth() abstract
Returns the width of the target image, in pixels.
getTargetHeight
Section titled “getTargetHeight”int getTargetHeight() abstract
Returns the height of the target image, in pixels.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
