MCPcopy Create free account
hub / github.com/GPUOpen-Tools/GPU-Reshape / Copy

Method Copy

Source/Backends/Vulkan/Layer/Source/Compiler/SpvModule.cpp:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46SpvModule *SpvModule::Copy() const {
47 auto *module = new(allocators) SpvModule(allocators, shaderGUID, instrumentationGUID);
48 module->spirvProgram = spirvProgram;
49 module->parent = this;
50
51 // Copy program
52 module->program = program->Copy();
53
54 // Create physical block table
55 module->physicalBlockTable = new(allocators) SpvPhysicalBlockTable(allocators, *module->program);
56 {
57 physicalBlockTable->CopyTo(*module->physicalBlockTable);
58 }
59
60 // OK
61 return module;
62}
63
64bool SpvModule::ParseModule(const uint32_t *code, uint32_t wordCount) {
65 // Create new program

Callers 2

CompileShaderMethod · 0.45
InstallProgramsMethod · 0.45

Calls 1

CopyToMethod · 0.45

Tested by

no test coverage detected