From 0f9b3a95a6cc087bc1e34d4becff04fa6160c582 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 18 Mar 2021 13:19:58 -0700 Subject: Remove `DescriptorSet` from D3D11 and GL devices. (#1761) --- tools/gfx/d3d/d3d-util.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/gfx/d3d/d3d-util.cpp') 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>& outDxgiAdapters) { Slang::String lowerAdapterName = Slang::String(adapterName).toLower(); -- cgit v1.2.3