MCPcopy Create free account
hub / github.com/Inori/GPCS4 / decodeShader

Method decodeShader

GPCS4/Graphics/Gcn/GcnModule.cpp:64–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 GcnInstructionList GcnModule::decodeShader(GcnCodeSlice& slice) const
65 {
66 GcnInstructionList insList;
67 GcnDecodeContext decoder;
68
69 // Decode and save instructions
70 insList.reserve(m_header.length() / sizeof(uint32_t));
71 while (!slice.atEnd())
72 {
73 decoder.decodeInstruction(slice);
74
75 insList.emplace_back(
76 decoder.getInstruction());
77 }
78
79 return insList;
80 }
81
82 void GcnModule::runAnalyzer(
83 GcnAnalyzer& analyzer, const GcnInstructionList& insList) const

Callers 1

compileMethod · 0.95

Calls 5

atEndMethod · 0.80
decodeInstructionMethod · 0.80
emplace_backMethod · 0.80
reserveMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected