1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Implement CheckCounterInfo and related stubs

DXVK does not support device-specific counters, which seem to
be useful only for GPU profiling during development, but we
should report this properly to the application.
This commit is contained in:
Philip Rebohle 2018-06-11 14:01:45 +02:00
parent 05f24c3c38
commit dcd6c2c0f3
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1393,8 +1393,8 @@ namespace dxvk {
ID3D11Counter** ppCounter) { ID3D11Counter** ppCounter) {
InitReturnPtr(ppCounter); InitReturnPtr(ppCounter);
Logger::err("D3D11Device::CreateCounter: Not implemented"); Logger::err(str::format("D3D11: Unsupported counter: ", pCounterDesc->Counter));
return E_NOTIMPL; return E_INVALIDARG;
} }
@ -1506,7 +1506,10 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D11Device::CheckCounterInfo(D3D11_COUNTER_INFO* pCounterInfo) { void STDMETHODCALLTYPE D3D11Device::CheckCounterInfo(D3D11_COUNTER_INFO* pCounterInfo) {
Logger::err("D3D11Device::CheckCounterInfo: Not implemented"); // We basically don't support counters
pCounterInfo->LastDeviceDependentCounter = D3D11_COUNTER(0);
pCounterInfo->NumSimultaneousCounters = 0;
pCounterInfo->NumDetectableParallelUnits = 0;
} }
@ -1520,8 +1523,8 @@ namespace dxvk {
UINT* pUnitsLength, UINT* pUnitsLength,
LPSTR szDescription, LPSTR szDescription,
UINT* pDescriptionLength) { UINT* pDescriptionLength) {
Logger::err("D3D11Device::CheckCounter: Not implemented"); Logger::err("D3D11: Counters not supported");
return E_NOTIMPL; return E_INVALIDARG;
} }