summaryrefslogtreecommitdiff
path: root/tools/gfx/render.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-01-08 11:09:20 -0500
committerGitHub <noreply@github.com>2020-01-08 11:09:20 -0500
commitcae5ddd4a2c9343ec7367c9049c5cc0c8628a9c4 (patch)
treec8200a495f3c0bc5a841ce752fdfb13a73278faf /tools/gfx/render.h
parent17285faf9b4fe7f6c28b43972212068465bdb42e (diff)
Setup of runtime cuda device (#1162)
* 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
Diffstat (limited to 'tools/gfx/render.h')
-rw-r--r--tools/gfx/render.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gfx/render.h b/tools/gfx/render.h
index 65f3c00c0..a4d042a9a 100644
--- a/tools/gfx/render.h
+++ b/tools/gfx/render.h
@@ -68,13 +68,14 @@ enum class RendererType
OpenGl,
Vulkan,
CPU,
+ CUDA,
CountOf,
};
enum class ProjectionStyle
{
Unknown,
- OpenGl,
+ OpenGl,
DirectX,
Vulkan,
CountOf,
@@ -88,6 +89,7 @@ enum class BindingStyle
OpenGl,
Vulkan,
CPU,
+ CUDA,
CountOf,
};