Skip to content

Commit

Permalink
D3D: Add debug object name for efb encoder pixel shader
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgreywater committed Feb 9, 2015
1 parent 98f02c7 commit 3b49f5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
Expand Up @@ -253,6 +253,11 @@ ID3D11PixelShader* PSTextureEncoder::SetStaticShader(unsigned int dstFormat, PEC
HRESULT hr = D3D::device->CreatePixelShader(bytecode->Data(), bytecode->Size(), nullptr, &newShader);
CHECK(SUCCEEDED(hr), "create efb encoder pixel shader");

char debugName[255] = {};
sprintf_s(debugName, "efb encoder pixel shader (dst:%d, src:%d, intensity:%d, scale:%d)",
dstFormat, srcFormat, isIntensity, scaleByHalf);
D3D::SetDebugObjectName(newShader, debugName);

it = m_staticShaders.insert(std::make_pair(key, newShader)).first;
bytecode->Release();
}
Expand Down

0 comments on commit 3b49f5e

Please sign in to comment.