1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[d3d9] Add IsDepthStencil helper to D3D9CommonTexture

This commit is contained in:
Joshua Ashton 2020-03-09 00:24:56 +00:00
parent a432befa8d
commit 102d97db02

View File

@ -244,6 +244,14 @@ namespace dxvk {
return m_desc.Usage & D3DUSAGE_RENDERTARGET;
}
/**
* \brief Depth stencil
* \returns Whether a resource is a depth stencil or not
*/
bool IsDepthStencil() const {
return m_desc.Usage & D3DUSAGE_DEPTHSTENCIL;
}
/**
* \brief Autogen Mipmap
* \returns Whether the texture is to have automatic mip generation