diff options
Diffstat (limited to 'tools/gfx/render.h')
| -rw-r--r-- | tools/gfx/render.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/gfx/render.h b/tools/gfx/render.h index 12ef1a9e9..55beb5774 100644 --- a/tools/gfx/render.h +++ b/tools/gfx/render.h @@ -800,12 +800,14 @@ public: struct Desc { - int width; ///< Width in pixels - int height; ///< height in pixels + int width = 0; ///< Width in pixels + int height = 0; ///< height in pixels Slang::String adapter; ///< Name to identify the adapter to use - Slang::List<Slang::String> requiredFeatures; ///< The features enabled on this renderer + Slang::List<Slang::String> requiredFeatures; ///< List of required feature names. + int nvapiExtnSlot = -1; ///< The slot (typically UAV) used to identify NVAPI intrinsics. If >=0 NVAPI is required. }; + // Will return with SLANG_E_NOT_AVAILABLE if NVAPI can't be initialized and nvapiExtnSlot >= 0 virtual SlangResult initialize(const Desc& desc, void* inWindowHandle) = 0; bool hasFeature(const Slang::UnownedStringSlice& feature) { return getFeatures().indexOf(Slang::String(feature)) != Slang::Index(-1); } |
