Skip to content

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.

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.

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

ReturnsSignatureSummary
voiddestroy()Destroys every pipeline.
longget(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.
voidinvalidate(VulkanShader shader, Consumer disposer)Forgets every pipeline of the shader and destroys them through the consumer, once no frame uses them.

VulkanPipelineCache(VulkanContext context)

Creates an empty cache over the device.

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<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

Report a problem with this page