mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[d3d9] Add IsDepthStencil helper to D3D9CommonTexture
This commit is contained in:
parent
a432befa8d
commit
102d97db02
@ -244,6 +244,14 @@ namespace dxvk {
|
|||||||
return m_desc.Usage & D3DUSAGE_RENDERTARGET;
|
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
|
* \brief Autogen Mipmap
|
||||||
* \returns Whether the texture is to have automatic mip generation
|
* \returns Whether the texture is to have automatic mip generation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user