summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2024-05-08 19:19:08 +0200
committerGitHub <noreply@github.com>2024-05-08 10:19:08 -0700
commit93e5b718e8497a0a70eb14dffe120c9ca6d99fd8 (patch)
tree61aba93a5d19ba74835129bd22b17bae652ee2de /tools/gfx/d3d12
parent4f2330d059ab5943ddf33bfed37be6a0378d43a8 (diff)
[gfx] Cache mutable root shader object in Vulkan (#4119)
* fix comment * add caching of mutable root shader objects in vulkan * Fix. --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx/d3d12')
-rw-r--r--tools/gfx/d3d12/d3d12-shader-object.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/gfx/d3d12/d3d12-shader-object.h b/tools/gfx/d3d12/d3d12-shader-object.h
index 84d305ae7..6251a970c 100644
--- a/tools/gfx/d3d12/d3d12-shader-object.h
+++ b/tools/gfx/d3d12/d3d12-shader-object.h
@@ -285,8 +285,7 @@ protected:
class MutableRootShaderObjectImpl : public RootShaderObjectImpl
{
public:
- // Override default reference counting behavior to disable lifetime management via ComPtr.
- // Root objects are managed by command buffer and does not need to be freed by the user.
+ // Enable reference counting.
SLANG_NO_THROW uint32_t SLANG_MCALL addRef() override { return ShaderObjectBase::addRef(); }
SLANG_NO_THROW uint32_t SLANG_MCALL release() override { return ShaderObjectBase::release(); }
};