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:
parent
05f24c3c38
commit
dcd6c2c0f3
@ -1393,8 +1393,8 @@ namespace dxvk {
|
||||
ID3D11Counter** ppCounter) {
|
||||
InitReturnPtr(ppCounter);
|
||||
|
||||
Logger::err("D3D11Device::CreateCounter: Not implemented");
|
||||
return E_NOTIMPL;
|
||||
Logger::err(str::format("D3D11: Unsupported counter: ", pCounterDesc->Counter));
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
|
||||
@ -1506,7 +1506,10 @@ namespace dxvk {
|
||||
|
||||
|
||||
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,
|
||||
LPSTR szDescription,
|
||||
UINT* pDescriptionLength) {
|
||||
Logger::err("D3D11Device::CheckCounter: Not implemented");
|
||||
return E_NOTIMPL;
|
||||
Logger::err("D3D11: Counters not supported");
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user