29 if (!
ToHLSL(program, caps, &hlsl)) {
32 out.writeString(hlsl);
38 if (!
ToSPIRV(program, caps, &spirv)) {
42 program.
fContext->fErrors->error(
Position(),
"HLSL cross-compilation not enabled");
bool ToSPIRV(Program &program, const ShaderCaps *caps, OutputStream &out)
bool SPIRVtoHLSL(const std::string &, std::string *)
bool ToHLSL(Program &program, const ShaderCaps *caps, OutputStream &out)
std::shared_ptr< Context > fContext
#define TRACE_EVENT0(category_group, name)