mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +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;
|
||||
}
|
||||
|
||||
BOOL HasBindFlag(UINT Flags) const {
|
||||
return m_info.BindFlags & Flags;
|
||||
}
|
||||
|
||||
D3D11_RESOURCE_DIMENSION GetResourceType() const {
|
||||
D3D11_RESOURCE_DIMENSION type;
|
||||
m_resource->GetType(&type);
|
||||
|
@ -39,6 +39,10 @@ namespace dxvk {
|
||||
return m_info;
|
||||
}
|
||||
|
||||
BOOL HasBindFlag(UINT Flags) const {
|
||||
return m_info.BindFlags & Flags;
|
||||
}
|
||||
|
||||
D3D11_RESOURCE_DIMENSION GetResourceType() const {
|
||||
D3D11_RESOURCE_DIMENSION type;
|
||||
m_resource->GetType(&type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user