15 class VSG_DECLSPEC ShaderCompiler :
public Inherit<Visitor, ShaderCompiler>
19 virtual ~ShaderCompiler();
28 bool compile(ShaderStages& shaders,
const std::vector<std::string>& defines = {},
ref_ptr<const Options> options = {});
29 bool compile(ref_ptr<ShaderStage> shaderStage,
const std::vector<std::string>& defines = {}, ref_ptr<const Options> options = {});
31 std::string combineSourceAndDefines(
const std::string& source,
const std::vector<std::string>& defines);
33 void apply(Node& node)
override;
34 void apply(BindGraphicsPipeline& bgp)
override;
35 void apply(BindComputePipeline& bgp)
override;
36 void apply(BindRayTracingPipeline& bgp)
override;
39 bool _initialized =
false;