supported preamble
This commit is contained in:
parent
bf344f538c
commit
e813fb426a
@ -1 +1 @@
|
|||||||
Subproject commit 1964799fba06abcbad2ff684cba360f0067c34a2
|
Subproject commit ac5524ef523e663e19493e77013873391e866340
|
@ -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
|
||||||
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user