mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[d3d11] Silence warning about GenerateMips being called on buffers
This commit is contained in:
parent
3df708d500
commit
da21a6db7f
@ -810,14 +810,13 @@ namespace dxvk {
|
||||
void STDMETHODCALLTYPE D3D11DeviceContext::GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) {
|
||||
auto view = static_cast<D3D11ShaderResourceView*>(pShaderResourceView);
|
||||
|
||||
if (view->GetResourceType() != D3D11_RESOURCE_DIMENSION_BUFFER) {
|
||||
if (view->GetResourceType() != D3D11_RESOURCE_DIMENSION_BUFFER)
|
||||
return;
|
||||
|
||||
EmitCs([cDstImageView = view->GetImageView()]
|
||||
(DxvkContext* ctx) {
|
||||
ctx->generateMipmaps(cDstImageView);
|
||||
});
|
||||
} else {
|
||||
Logger::err("D3D11: GenerateMips called on a buffer");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user