1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d11] Add check whether a viewed resource has a given bind flag

This commit is contained in:
Philip Rebohle 2019-08-29 18:30:28 +02:00
parent 7a57357717
commit c8c781c88b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,10 @@ namespace dxvk {
return m_info; return m_info;
} }
BOOL HasBindFlag(UINT Flags) const {
return m_info.BindFlags & Flags;
}
D3D11_RESOURCE_DIMENSION GetResourceType() const { D3D11_RESOURCE_DIMENSION GetResourceType() const {
D3D11_RESOURCE_DIMENSION type; D3D11_RESOURCE_DIMENSION type;
m_resource->GetType(&type); m_resource->GetType(&type);

View File

@ -39,6 +39,10 @@ namespace dxvk {
return m_info; return m_info;
} }
BOOL HasBindFlag(UINT Flags) const {
return m_info.BindFlags & Flags;
}
D3D11_RESOURCE_DIMENSION GetResourceType() const { D3D11_RESOURCE_DIMENSION GetResourceType() const {
D3D11_RESOURCE_DIMENSION type; D3D11_RESOURCE_DIMENSION type;
m_resource->GetType(&type); m_resource->GetType(&type);