D3D: Add debug object name for efb encoder pixel shader

This commit is contained in:
mr.greywater 2015-02-09 13:43:28 +01:00
parent b5ffba3291
commit 442b7ba99c
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}