summaryrefslogtreecommitdiff
path: root/tools/render-test/cuda
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/cuda')
-rw-r--r--tools/render-test/cuda/cuda-compute-util.h11
1 files changed, 7 insertions, 4 deletions
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<BindSet::Value*> m_buffers;
- Slang::OrderedDictionary<Slang::String, RefPtr<CUDAResource>> m_bindlessResources;
+ Slang::List<BindSet::Value*> m_buffers;
+ Slang::OrderedDictionary<Slang::String, Slang::RefPtr<CUDAResource>> 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<CUDAResource>& outResource);
+ static SlangResult createTextureResource(
+ const ShaderInputLayoutEntry& srcEntry,
+ slang::TypeLayoutReflection* typeLayout,
+ Slang::RefPtr<CUDAResource>& outResource);
static SlangResult execute(const ShaderCompilerUtil::OutputAndLayout& outputAndLayout, const uint32_t dispatchSize[3], Context& outContext);