diff options
| author | Yong He <yonghe@outlook.com> | 2020-10-09 11:29:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-09 11:29:11 -0700 |
| commit | fab1c9f4c745ba84983c2448646376799d461e96 (patch) | |
| tree | 3176c03987417c01b7220aaf13c35b665813c876 /tools/render-test/shader-input-layout.h | |
| parent | 11f331771a8d5d80bc1dd317dcad5eb815e9cb55 (diff) | |
Support CUDA bindless texture in dynamic dispatch code. (#1575)
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
| -rw-r--r-- | tools/render-test/shader-input-layout.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h index 4abbd6fb5..97796d7f6 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -75,19 +75,26 @@ struct RTTIDataEntry unsigned int offset; }; +struct BindlessHandleDataEntry +{ + unsigned int offset; + Slang::String name; +}; + class ShaderInputLayoutEntry { public: ShaderInputType type; Slang::List<unsigned int> bufferData; Slang::List<RTTIDataEntry> rttiEntries; + Slang::List<BindlessHandleDataEntry> bindlessHandleEntry; InputTextureDesc textureDesc; InputBufferDesc bufferDesc; InputSamplerDesc samplerDesc; ArrayDesc arrayDesc; bool isOutput = false; bool onlyCPULikeBinding = false; ///< If true, only use on targets that have 'uniform' or 'CPU like' binding, like CPU and CUDA - + bool isBindlessObject = false; ///< If true, this is a bindless object with no associated binding point in the shader. Slang::String name; ///< Optional name. Useful for binding through reflection. }; |
