summaryrefslogtreecommitdiff
path: root/tools/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx')
-rw-r--r--tools/gfx/render.cpp2
-rw-r--r--tools/gfx/render.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/gfx/render.cpp b/tools/gfx/render.cpp
index 785343927..43a255817 100644
--- a/tools/gfx/render.cpp
+++ b/tools/gfx/render.cpp
@@ -75,6 +75,7 @@ const Resource::DescBase& Resource::getDescBase() const
BindingStyle::OpenGl, // OpenGl,
BindingStyle::Vulkan, // Vulkan
BindingStyle::CPU, // CPU
+ BindingStyle::CUDA, // CUDA
};
/* static */void RendererUtil::compileTimeAsserts()
@@ -405,6 +406,7 @@ ProjectionStyle RendererUtil::getProjectionStyle(RendererType type)
case RendererType::Vulkan: return UnownedStringSlice::fromLiteral("Vulkan");
case RendererType::Unknown: return UnownedStringSlice::fromLiteral("Unknown");
case RendererType::CPU: return UnownedStringSlice::fromLiteral("CPU");
+ case RendererType::CUDA: return UnownedStringSlice::fromLiteral("CUDA");
default: return UnownedStringSlice::fromLiteral("?!?");
}
}
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,
};