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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| VulkanDescriptorCache(VulkanContext context) | Creates an empty cache over the device. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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 | Forgets every set that uses that handle and frees them through the consumer, once no frame uses them. |
Creation details
Section titled “Creation details”VulkanDescriptorCache
Section titled “VulkanDescriptorCache”VulkanDescriptorCache(VulkanContext context)
Creates an empty cache over the device.
Method details
Section titled “Method details”destroy
Section titled “destroy”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.
invalidate
Section titled “invalidate”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
