MCPcopy Create free account
hub / github.com/csyonghe/Spire / GenerateEntryPoint

Method GenerateEntryPoint

Source/SpireCore/SpirVCodeGen.cpp:4762–4777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4760 }
4761
4762 void GenerateEntryPoint(int mainFunctionID)
4763 {
4764 ctx.AddInstrEntryPoint(currentExecutionModel, mainFunctionID, interfaceIDs);
4765 if (currentExecutionModel == ExecutionModel::Fragment)
4766 {
4767 ctx.AddInstrExecutionMode(mainFunctionID, ExecutionMode::OriginUpperLeft);
4768 }
4769 if (DepthReplacing)
4770 {
4771 ctx.AddInstrExecutionMode(mainFunctionID, ExecutionMode::DepthReplacing);
4772 }
4773 if (LocalSize)
4774 {
4775 ctx.AddInstrExecutionMode(mainFunctionID, ExecutionMode::LocalSize, 256, 1, 1);
4776 }
4777 }
4778
4779 int GenerateGlGlobalInvocationID()
4780 //return the ID of the gl_GlobalInvocationID variable

Callers 1

GenerateShaderWorldMethod · 0.80

Calls 2

AddInstrEntryPointMethod · 0.80
AddInstrExecutionModeMethod · 0.80

Tested by

no test coverage detected