MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / SetEngineType

Method SetEngineType

PresentData/GpuTrace.cpp:205–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void GpuTrace::SetEngineType(uint64_t pDxgAdapter, uint32_t nodeOrdinal, Microsoft_Windows_DxgKrnl::DXGK_ENGINE engineType)
206{
207 // Node should already be created (DxgKrnl::Context_Start comes
208 // first) but just to be sure...
209 auto node = &mNodes[pDxgAdapter].emplace(nodeOrdinal, Node{}).first->second;
210
211 if (engineType == Microsoft_Windows_DxgKrnl::DXGK_ENGINE::VIDEO_DECODE ||
212 engineType == Microsoft_Windows_DxgKrnl::DXGK_ENGINE::VIDEO_ENCODE ||
213 engineType == Microsoft_Windows_DxgKrnl::DXGK_ENGINE::VIDEO_PROCESSING) {
214 node->mIsVideo = true;
215 }
216}
217
218void GpuTrace::SetContextProcessId(Context* context, uint32_t processId)
219{

Callers 1

HandleDXGKEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected