add custom entrypoint support (hlsl).
This commit is contained in:
parent
38fb792d79
commit
42a198ea6e
@ -224,6 +224,7 @@ extern "C"
|
||||
struct CompileInfo
|
||||
{
|
||||
ShaderType shader_type = ShaderType::GLSL;
|
||||
const char *entrypoint;
|
||||
uint32_t includes_count;
|
||||
const char **includes;
|
||||
};
|
||||
@ -498,7 +499,7 @@ extern "C"
|
||||
messages = (EShMessages)(EShMsgReadHlsl | EShMsgSpvRules | EShMsgVulkanRules);
|
||||
|
||||
// HLSL Request!
|
||||
shader.setEntryPoint("main");
|
||||
shader.setEntryPoint(compile_info->entrypoint);
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < compile_info->includes_count; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user