Skip to content

VulkanShader

final class VulkanShader
Extends: Shader
Package: dev.joid.backend.vulkan.render.shader · Module: backend-vulkan · Source: VulkanShader.java
Backends: Vulkan

A shader of Vulkan: the two stages compiled to SPIR-V, with their descriptor set layout and pipeline layout.

A stage that does not compile prints the error of shaderc and leaves the shader inactive, without throwing.

ReturnsSignatureSummary
VulkanShadercreate(VulkanRenderBridge bridge, ShaderSource vertex, ShaderSource fragment, BlendState blend) factoryCreates the shader; VulkanRenderBridge.createShader calls it.

ReturnsSignatureSummary
longgetVertexModule()Returns the shader module of the vertex stage.
longgetFragmentModule()Returns the shader module of the fragment stage.
longgetPipelineLayout()Returns the pipeline layout of the shader.
booleanisProgramActive()If true, both stages compiled.
longgetDescriptorSetLayout()Returns the descriptor set layout of the uniform block and the samplers.
Inherited from Shader (18)

bind · unbind · isActive · getLineShader · getSamplerMap · getBlend · getBridge · getVertex · getFragment · getBlock · getTranslation · isBound · isCompiled · getPreviousBlend · delete · uniform · sampler · builtins

VulkanShader create(VulkanRenderBridge bridge, ShaderSource vertex, ShaderSource fragment, BlendState blend) factory

Creates the shader; VulkanRenderBridge.createShader calls it.

long getVertexModule()

Returns the shader module of the vertex stage.

long getFragmentModule()

Returns the shader module of the fragment stage.

long getPipelineLayout()

Returns the pipeline layout of the shader.

boolean isProgramActive()

If true, both stages compiled.

long getDescriptorSetLayout()

Returns the descriptor set layout of the uniform block and the samplers.


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