From f834f25794cfb746079e92d58c7410b767c57208 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 14 Jan 2021 15:48:54 -0800 Subject: COM-ify all slang-gfx interfaces. (#1656) * COM-ify all slang-gfx interfaces. --- tools/render-test/cuda/cuda-compute-util.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tools/render-test/cuda') diff --git a/tools/render-test/cuda/cuda-compute-util.h b/tools/render-test/cuda/cuda-compute-util.h index 8bc7bd8d6..ac0c6bba3 100644 --- a/tools/render-test/cuda/cuda-compute-util.h +++ b/tools/render-test/cuda/cuda-compute-util.h @@ -10,7 +10,7 @@ namespace renderer_test { // Base class for CUDA resources. This includes textures but also // memory allocations -class CUDAResource : public RefObject +class CUDAResource : public Slang::RefObject { public: virtual uint64_t getBindlessHandle() = 0; @@ -44,8 +44,8 @@ struct CUDAComputeUtil BindSet m_bindSet; CPULikeBindRoot m_bindRoot; /// Buffers are held in same order as entries in layout (useful for dumping out bindings) - List m_buffers; - Slang::OrderedDictionary> m_bindlessResources; + Slang::List m_buffers; + Slang::OrderedDictionary> m_bindlessResources; void releaseBindlessResources(); }; @@ -53,7 +53,10 @@ struct CUDAComputeUtil static bool hasFeature(const Slang::UnownedStringSlice& feature); - static SlangResult createTextureResource(const ShaderInputLayoutEntry& srcEntry, slang::TypeLayoutReflection* typeLayout, RefPtr& outResource); + static SlangResult createTextureResource( + const ShaderInputLayoutEntry& srcEntry, + slang::TypeLayoutReflection* typeLayout, + Slang::RefPtr& outResource); static SlangResult execute(const ShaderCompilerUtil::OutputAndLayout& outputAndLayout, const uint32_t dispatchSize[3], Context& outContext); -- cgit v1.2.3