summaryrefslogtreecommitdiff
path: root/tools/gfx/render.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/render.h')
-rw-r--r--tools/gfx/render.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gfx/render.h b/tools/gfx/render.h
index 775e71613..eebeaa170 100644
--- a/tools/gfx/render.h
+++ b/tools/gfx/render.h
@@ -779,8 +779,9 @@ public:
struct Desc
{
- int width; ///< Width in pixels
- int height; ///< height in pixels
+ int width; ///< Width in pixels
+ int height; ///< height in pixels
+ Slang::String adapter; ///< Name to identify the adapter to use
};
virtual SlangResult initialize(const Desc& desc, void* inWindowHandle) = 0;
@@ -978,6 +979,9 @@ struct RendererUtil
/// Get the binding style from the type
static BindingStyle getBindingStyle(RendererType type) { return s_rendererTypeToBindingStyle[int(type)]; }
+ /// Get as text
+ static Slang::UnownedStringSlice toText(RendererType type);
+
private:
static void compileTimeAsserts();
static const uint8_t s_formatSize[]; // Maps Format::XXX to a size in bytes;