Skip to content

VulkanDescriptorCache

final class VulkanDescriptorCache
Package: dev.joid.backend.vulkan.render.descriptor · Module: backend-vulkan · Source: VulkanDescriptorCache.java
Backends: Vulkan

The descriptor sets of the Vulkan renderer, one per shader, uniform buffer and set of image views.

ReturnsSignatureSummary
VulkanDescriptorCache(VulkanContext context)Creates an empty cache over the device.

ReturnsSignatureSummary
voiddestroy()Destroys the descriptor pools and every set.
longget(VulkanShader shader, long uniformBuffer, long[] images)Returns the descriptor set of the shader for that uniform buffer and those image views, written at its first use.
voidinvalidate(long handle, Consumer disposer)Forgets every set that uses that handle and frees them through the consumer, once no frame uses them.

VulkanDescriptorCache(VulkanContext context)

Creates an empty cache over the device.

void destroy()

Destroys the descriptor pools and every set.

long get(VulkanShader shader, long uniformBuffer, long[] images)

Returns the descriptor set of the shader for that uniform buffer and those image views, written at its first use.

void invalidate(long handle, Consumer<Runnable> disposer)

Forgets every set that uses that handle and frees them through the consumer, once no frame uses them.


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