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

Method GenerateShaderWorld

Source/SpireCore/SpirVCodeGen.cpp:4869–4880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4867 }
4868
4869 CompiledShaderSource GenerateShaderWorld()
4870 {
4871 CompiledShaderSource rs;
4872
4873 auto binaryForm = ctx.ProduceWordStream();
4874 rs.BinaryCode.SetSize(binaryForm.Count() * sizeof(unsigned int));
4875 memcpy(rs.BinaryCode.Buffer(), binaryForm.Buffer(), rs.BinaryCode.Count());
4876
4877 rs.MainCode = ctx.ProduceTextCode();
4878
4879 return rs;
4880 }
4881 };
4882
4883 class SpirVCodeGen : public CodeGenBackend

Callers 1

GenerateShaderWorldMethod · 0.45

Calls 5

ProduceWordStreamMethod · 0.45
SetSizeMethod · 0.45
CountMethod · 0.45
BufferMethod · 0.45
ProduceTextCodeMethod · 0.45

Tested by

no test coverage detected