From ef41dfc605f7868c0ccc7dde05982232b7d49589 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 10 Jan 2020 15:00:13 -0500 Subject: 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. --- prelude/slang-cuda-prelude.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'prelude') 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 -- cgit v1.2.3