From 102d97db0252e3603313b2d46de4da242211953d Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 9 Mar 2020 00:24:56 +0000 Subject: [PATCH] [d3d9] Add IsDepthStencil helper to D3D9CommonTexture --- src/d3d9/d3d9_common_texture.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/d3d9/d3d9_common_texture.h b/src/d3d9/d3d9_common_texture.h index 9e487c594..093e4e95b 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