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:
parent
7a57357717
commit
c8c781c88b
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user