VulkanBackend
final class VulkanBackend
Extends: Backend
Package: dev.joid.backend.vulkan · Module: backend-vulkan · Source: VulkanBackend.java
Backends: Vulkan
The backend for Vulkan, which records the frames of JOID into the frame of a Vulkan host and reads a GLFW window.
Description
Section titled “Description”The host owns the device, the command buffers and the image that JOID draws into: WindowVulkanHost for a window of your own, or your engine through IVulkanHost.
The loop draws each JOID frame between beginFrame() and endFrame() of the host.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
VulkanBackend | create(long window, IVulkanHost host) factory | Creates the backend for the GLFW window of that handle, created without client API, and the Vulkan host that JOID draws into. |
Properties
Section titled “Properties”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | destroy() | Waits for the device, then releases every resource of the renderer; call it after the loop, before you destroy the host. |
Inherited from Backend (4)
register · frame · getVersion · isRegistered
Creation details
Section titled “Creation details”create
Section titled “create”VulkanBackend create(long window, IVulkanHost host) factory
Creates the backend for the GLFW window of that handle, created without client API, and the Vulkan host that JOID draws into.
Method details
Section titled “Method details”destroy
Section titled “destroy”void destroy()
Throws:
IllegalStateException: VulkanBackend has no render bridge to destroy: call register() first and destroy() only once
Waits for the device, then releases every resource of the renderer; call it after the loop, before you destroy the host.
Throws an IllegalStateException before register() or on a second call.
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
