GLSL → SPIR-V compilation and SPIR-V loading.
Uses lwjgl-shaderc for in-process compilation — no glslc subprocess required. Falls back to the glslc subprocess when shaderc natives are unavailable.
GLSL → SPIR-V compilation and SPIR-V loading. Uses lwjgl-shaderc for in-process compilation — no glslc subprocess required. Falls back to the glslc subprocess when shaderc natives are unavailable.
(compile-glsl source-path)Compile a GLSL source file to SPIR-V. Tries in-process shaderc first; falls back to the glslc subprocess. Returns true on success, throws RuntimeException on failure. Output .spv is written alongside the source file.
Compile a GLSL source file to SPIR-V. Tries in-process shaderc first; falls back to the glslc subprocess. Returns true on success, throws RuntimeException on failure. Output .spv is written alongside the source file.
(load-spirv spv-path)Load a compiled SPIR-V (.spv) file. Returns a java.nio.ByteBuffer (little-endian, direct) suitable for VkShaderModuleCreateInfo, or nil on failure.
Load a compiled SPIR-V (.spv) file. Returns a java.nio.ByteBuffer (little-endian, direct) suitable for VkShaderModuleCreateInfo, or nil on failure.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |