Skip to content

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.

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.

ReturnsSignatureSummary
VulkanBackendcreate(long window, IVulkanHost host) factoryCreates the backend for the GLFW window of that handle, created without client API, and the Vulkan host that JOID draws into.

Inherited from Backend (3)

audio · dataDir · cacheDir

ReturnsSignatureSummary
voiddestroy()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

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.

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

Report a problem with this page