VulkanShaderCompiler
final class VulkanShaderCompiler
Package: dev.joid.backend.vulkan.render.shader · Module: backend-vulkan · Source: VulkanShaderCompiler.java
Backends: Vulkan
Compiles a translated GLSL stage to SPIR-V with shaderc, at run time.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
ByteBuffer | compile(String source, ShaderStage stage) static | Returns the SPIR-V code of the source, in a direct buffer, or null after printing the error of shaderc when the source does not compile. |
Method details
Section titled “Method details”compile
Section titled “compile”ByteBuffer compile(String source, ShaderStage stage) static
Returns the SPIR-V code of the source, in a direct buffer, or null after printing the error of shaderc when the source does not compile.
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
