VulkanPipelineCache
final class VulkanPipelineCache
Package: dev.joid.backend.vulkan.render.pipeline · Module: backend-vulkan · Source: VulkanPipelineCache.java
Backends: Vulkan
The graphics pipelines of the Vulkan renderer, one per pipeline key and kind of target.
Description
Section titled “Description”The viewport, the scissor, the cull mode, the front face, the depth test and write and the stencil are dynamic states, so they create no pipeline.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| VulkanPipelineCache(VulkanContext context) | Creates an empty cache over the device. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | destroy() | Destroys every pipeline. |
long | get(PipelineKey key, boolean offscreen, long renderPass) | Returns the pipeline of that key for the screen or an offscreen target, created at its first use with that render pass. |
void | invalidate(VulkanShader shader, Consumer | Forgets every pipeline of the shader and destroys them through the consumer, once no frame uses them. |
Creation details
Section titled “Creation details”VulkanPipelineCache
Section titled “VulkanPipelineCache”VulkanPipelineCache(VulkanContext context)
Creates an empty cache over the device.
Method details
Section titled “Method details”destroy
Section titled “destroy”void destroy()
Destroys every pipeline.
long get(PipelineKey key, boolean offscreen, long renderPass)
Returns the pipeline of that key for the screen or an offscreen target, created at its first use with that render pass.
invalidate
Section titled “invalidate”void invalidate(VulkanShader shader, Consumer<Runnable> disposer)
Forgets every pipeline of the shader and destroys 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
