diff --git a/src/d3d9/d3d9_common_texture.h b/src/d3d9/d3d9_common_texture.h index 9e487c59..093e4e95 100644 --- a/src/d3d9/d3d9_common_texture.h +++ b/src/d3d9/d3d9_common_texture.h @@ -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