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

Method Initiate

Source/SpireCore/SpirVCodeGen.cpp:4653–4667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4651 bool BufferPreProcessed;
4652
4653 void Initiate(ExecutionModel model, CompiledWorld * shaderWorld)
4654 {
4655 ctx.Clear();
4656 ctx.CodeGen.Initiate();
4657 ctx.CurrentID = 1; // reserved for extinst
4658 ctx.CodeGen.ProgramHeader();
4659 ctx.PushScope();
4660 interfaceIDs.Clear();
4661 DepthReplacing = false;
4662 LocalSize = false;
4663 BufferImportOrExport = false;
4664 BufferPreProcessed = false;
4665 currentWorld = shaderWorld;
4666 currentExecutionModel = model;
4667 }
4668
4669 int GenerateFunctionDeclaration(CompiledFunction *func)
4670 //return the ID of the Function Type

Callers 1

GenerateShaderWorldMethod · 0.45

Calls 3

ProgramHeaderMethod · 0.80
ClearMethod · 0.45
PushScopeMethod · 0.45

Tested by

no test coverage detected