mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +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) {
|
void STDMETHODCALLTYPE D3D11DeviceContext::GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) {
|
||||||
auto view = static_cast<D3D11ShaderResourceView*>(pShaderResourceView);
|
auto view = static_cast<D3D11ShaderResourceView*>(pShaderResourceView);
|
||||||
|
|
||||||
if (view->GetResourceType() != D3D11_RESOURCE_DIMENSION_BUFFER) {
|
if (view->GetResourceType() != D3D11_RESOURCE_DIMENSION_BUFFER)
|
||||||
EmitCs([cDstImageView = view->GetImageView()]
|
return;
|
||||||
(DxvkContext* ctx) {
|
|
||||||
ctx->generateMipmaps(cDstImageView);
|
EmitCs([cDstImageView = view->GetImageView()]
|
||||||
});
|
(DxvkContext* ctx) {
|
||||||
} else {
|
ctx->generateMipmaps(cDstImageView);
|
||||||
Logger::err("D3D11: GenerateMips called on a buffer");
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user