Skip to content

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.

JOID records into the frame of the host instead of owning one; WindowVulkanHost and SnapshotVulkanHost are complete hosts.

ReturnsSignatureSummary
intgetQueueFamilyIndex() abstractReturns the family of the graphics queue.
VkQueuegetQueue() abstractReturns the graphics queue, on which JOID submits the uploads that it does outside a frame.
VkDevicegetDevice() abstractReturns the logical device, created with VK_API_VERSION_1_3.
VkPhysicalDevicegetPhysicalDevice() abstractReturns the physical device of the logical device.
intgetFrameIndex() abstractReturns the slot of the current frame, from 0 to getFramesInFlight() - 1.
longgetFrameNumber() abstractReturns a counter that grows by one at each frame of the host, never per JOID frame.
intgetFramesInFlight() abstractReturns the number of frames in flight, 1 or more.
VkCommandBuffergetCommandBuffer() abstractReturns the command buffer of the current frame, recording and outside any render pass.
intgetColorFormat() abstractReturns the format of the target image.
longgetTargetView() abstractReturns the image view that JOID draws into, in COLOR_ATTACHMENT_OPTIMAL and already cleared.
intgetTargetWidth() abstractReturns the width of the target image, in pixels.
intgetTargetHeight() abstractReturns the height of the target image, in pixels.

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.


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

Report a problem with this page