diff options
| author | Yong He <yonghe@outlook.com> | 2021-03-18 13:19:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-18 13:19:58 -0700 |
| commit | 0f9b3a95a6cc087bc1e34d4becff04fa6160c582 (patch) | |
| tree | a8b14958f13f53ee3918c727f4e5a06af377349c /tools/gfx/d3d/d3d-util.cpp | |
| parent | 6e5d85efb9fa5f647f7f0c7ef784a9fd09b29023 (diff) | |
Remove `DescriptorSet` from D3D11 and GL devices. (#1761)
Diffstat (limited to 'tools/gfx/d3d/d3d-util.cpp')
| -rw-r--r-- | tools/gfx/d3d/d3d-util.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/gfx/d3d/d3d-util.cpp b/tools/gfx/d3d/d3d-util.cpp index a9686ab7d..dfc19c927 100644 --- a/tools/gfx/d3d/d3d-util.cpp +++ b/tools/gfx/d3d/d3d-util.cpp @@ -511,6 +511,19 @@ static bool _isMatch(IDXGIAdapter* adapter, const Slang::UnownedStringSlice& low return false; } +bool D3DUtil::isUAVBinding(slang::BindingType bindingType) +{ + switch (bindingType) + { + case slang::BindingType::MutableRawBuffer: + case slang::BindingType::MutableTexture: + case slang::BindingType::MutableTypedBuffer: + return true; + default: + return false; + } +} + /* static */SlangResult D3DUtil::findAdapters(DeviceCheckFlags flags, const UnownedStringSlice& adapterName, IDXGIFactory* dxgiFactory, List<ComPtr<IDXGIAdapter>>& outDxgiAdapters) { Slang::String lowerAdapterName = Slang::String(adapterName).toLower(); |
