summaryrefslogtreecommitdiff
path: root/tools/render-test/cuda/cuda-compute-util.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-02-20 10:34:58 -0500
committerGitHub <noreply@github.com>2020-02-20 10:34:58 -0500
commitdcc3af7bf4fdfb6926db039506137be0e16ae3bd (patch)
treed11c051624952fb3ef7614338a9b617e1bf059f4 /tools/render-test/cuda/cuda-compute-util.h
parent788556aaaab1b5767e24cf86dc2f71fd285c06f5 (diff)
CUDA/CPU support for 1D, 2D, CubeArray (#1232)
* CUDA support for array of resources. * * Add support for Texture2DArray on CPU * Expand texture-simple.slang to test Texture2DArray * Reorganise CUDAComputeUtil to split out createTextureResource. * Add TextureCubeArray support for CPU/CUDA targets.
Diffstat (limited to 'tools/render-test/cuda/cuda-compute-util.h')
-rw-r--r--tools/render-test/cuda/cuda-compute-util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/render-test/cuda/cuda-compute-util.h b/tools/render-test/cuda/cuda-compute-util.h
index f1ca65502..58a5bba33 100644
--- a/tools/render-test/cuda/cuda-compute-util.h
+++ b/tools/render-test/cuda/cuda-compute-util.h
@@ -40,6 +40,13 @@ struct CUDAComputeUtil
List<BindSet::Value*> m_buffers;
};
+ class ResourceBase : public RefObject
+ {
+ public:
+ };
+
+ static SlangResult createTextureResource(const ShaderInputLayoutEntry& srcEntry, slang::TypeLayoutReflection* typeLayout, RefPtr<ResourceBase>& outResource);
+
static SlangResult execute(const ShaderCompilerUtil::OutputAndLayout& outputAndLayout, const uint32_t dispatchSize[3], Context& outContext);
static bool canCreateDevice();