Class NoOpShaderCompiler
java.lang.Object
dev.engine.graphics.common.NoOpShaderCompiler
- All Implemented Interfaces:
ShaderCompiler
A no-op
ShaderCompiler for headless testing.
Always reports as unavailable and returns empty compilation results.
Used by Renderer.createHeadless() and similar test harnesses
where real shader compilation is not needed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ShaderCompiler
ShaderCompiler.CompileResult, ShaderCompiler.EntryPointDesc, ShaderCompiler.ParameterCategory, ShaderCompiler.ParameterInfo -
Field Summary
Fields inherited from interface ShaderCompiler
STAGE_COMPUTE, STAGE_FRAGMENT, STAGE_VERTEX, TARGET_GLSL, TARGET_SPIRV, TARGET_WGSL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(String source, List<ShaderCompiler.EntryPointDesc> entryPoints, int target) Compiles shader source with multiple entry points.compileWithTypeMap(String source, List<ShaderCompiler.EntryPointDesc> entryPoints, int target, Map<String, String> typeMap) Compiles with generic type specialization (material variants).booleanWhether the compiler is available and ready for use.
-
Constructor Details
-
NoOpShaderCompiler
public NoOpShaderCompiler()
-
-
Method Details
-
isAvailable
public boolean isAvailable()Description copied from interface:ShaderCompilerWhether the compiler is available and ready for use.- Specified by:
isAvailablein interfaceShaderCompiler
-
compile
public ShaderCompiler.CompileResult compile(String source, List<ShaderCompiler.EntryPointDesc> entryPoints, int target) Description copied from interface:ShaderCompilerCompiles shader source with multiple entry points.- Specified by:
compilein interfaceShaderCompiler
-
compileWithTypeMap
public ShaderCompiler.CompileResult compileWithTypeMap(String source, List<ShaderCompiler.EntryPointDesc> entryPoints, int target, Map<String, String> typeMap) Description copied from interface:ShaderCompilerCompiles with generic type specialization (material variants).- Specified by:
compileWithTypeMapin interfaceShaderCompiler
-