summaryrefslogtreecommitdiffstats
path: root/prelude
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-01-10 15:00:13 -0500
committerGitHub <noreply@github.com>2020-01-10 15:00:13 -0500
commitef41dfc605f7868c0ccc7dde05982232b7d49589 (patch)
treea2abe79250c234c65f968976db2578341ec77437 /prelude
parentf2a123d727316d8203820a332da1348f78ad9ad6 (diff)
WIP: CPU like CUDA binding (#1164)
* CUDA generated first test compiles. * WIP on enabling CUDA in render-test. * Detect CUDA_PATH environmental variable to build build cuda support into render-test. Added WIP cuda-compute-util.cpp/h Added CUDA as a renderer type. * Fix libraries needed for cuda in premake. * Added -enable-cuda premake option. Defaults to false. * Creates CUDA device, loads PTX and finds entry point. * Fix some erroneous cruft from slang-cuda-prelude.h * Made CUDA use C++ like ABI for generated code. Fix small bug in C++ output semantics.
Diffstat (limited to 'prelude')
-rw-r--r--prelude/slang-cuda-prelude.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/prelude/slang-cuda-prelude.h b/prelude/slang-cuda-prelude.h
index 4d4681baf..6e20d55c0 100644
--- a/prelude/slang-cuda-prelude.h
+++ b/prelude/slang-cuda-prelude.h
@@ -9,4 +9,10 @@ struct FixedArray
__device__ T& operator[](size_t index) { SLANG_PRELUDE_ASSERT(index < SIZE); return m_data[index]; }
T m_data[SIZE];
-}; \ No newline at end of file
+};
+
+/* Type that defines the uniform entry point params. The actual content of this type is dependent on the entry point parameters, and can be
+found via reflection or defined such that it matches the shader appropriately.
+*/
+struct UniformEntryPointParams;
+struct UniformState; \ No newline at end of file