supported preamble
This commit is contained in:
Submodule SPIRV-Cross updated: 1964799fba...ac5524ef52
@@ -227,6 +227,7 @@ extern "C"
|
|||||||
const char * entrypoint;
|
const char * entrypoint;
|
||||||
uint32_t includes_count;
|
uint32_t includes_count;
|
||||||
const char ** includes;
|
const char ** includes;
|
||||||
|
const char * preamble;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class VertexAttribBaseType
|
enum class VertexAttribBaseType
|
||||||
@@ -474,7 +475,7 @@ extern "C"
|
|||||||
++sr;
|
++sr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SPVData *Shader2SPV(
|
SPVData *Shader2SPV(
|
||||||
const uint32_t shader_stage,
|
const uint32_t shader_stage,
|
||||||
const char * shader_source,
|
const char * shader_source,
|
||||||
@@ -508,6 +509,9 @@ extern "C"
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(compile_info->preamble)
|
||||||
|
shader.setPreamble(compile_info->preamble);
|
||||||
|
|
||||||
shaderStrings[0] = shader_source;
|
shaderStrings[0] = shader_source;
|
||||||
shader.setStrings(shaderStrings, 1);
|
shader.setStrings(shaderStrings, 1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user