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.
Description
Section titled “Description”A stage that does not compile prints the error of shaderc and leaves the shader inactive, without throwing.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
VulkanShader | create(VulkanRenderBridge bridge, ShaderSource vertex, ShaderSource fragment, BlendState blend) factory | Creates the shader; VulkanRenderBridge.createShader calls it. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Inherited from Shader (18)
bind · unbind · isActive · getLineShader · getSamplerMap · getBlend · getBridge · getVertex · getFragment · getBlock · getTranslation · isBound · isCompiled · getPreviousBlend · delete · uniform · sampler · builtins
Creation details
Section titled “Creation details”create
Section titled “create”VulkanShader create(VulkanRenderBridge bridge, ShaderSource vertex, ShaderSource fragment, BlendState blend) factory
Creates the shader; VulkanRenderBridge.createShader calls it.
Method details
Section titled “Method details”getVertexModule
Section titled “getVertexModule”long getVertexModule()
Returns the shader module of the vertex stage.
getFragmentModule
Section titled “getFragmentModule”long getFragmentModule()
Returns the shader module of the fragment stage.
getPipelineLayout
Section titled “getPipelineLayout”long getPipelineLayout()
Returns the pipeline layout of the shader.
isProgramActive
Section titled “isProgramActive”boolean isProgramActive()
If true, both stages compiled.
getDescriptorSetLayout
Section titled “getDescriptorSetLayout”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
