mirror of
https://github.com/RPCS3/glslang.git
synced 2025-02-21 11:22:15 +00:00

Use "--source-entrypoint name" on the command line, or the TShader::setSourceEntryPoint(char*) API. When the name given to the above interfaces is detected in the shader source, it will be renamed to the entry point name supplied to the -e option or the TShader::setEntryPoint() method.
16 lines
198 B
GLSL
16 lines
198 B
GLSL
|
|
struct PS_OUTPUT
|
|
{
|
|
float4 Color : SV_Target0;
|
|
};
|
|
|
|
void not_the_entry_point() { }
|
|
int also_not_the_entry_point;
|
|
|
|
PS_OUTPUT main()
|
|
{
|
|
PS_OUTPUT psout;
|
|
psout.Color = 0;
|
|
return psout;
|
|
}
|