diff options
| author | Yong He <yonghe@outlook.com> | 2021-05-25 15:22:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-25 15:22:39 -0700 |
| commit | 89f67d9c626fa193dba4adafcb54e46b13aa5e98 (patch) | |
| tree | 769e11debb4194595a99e484d69af7b3704389c3 /tools/render-test/shader-input-layout.h | |
| parent | ba24264275c640e0ac3732f0f5720e1f5816cded (diff) | |
Rework shader object specialization control interface. (#1857)
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
| -rw-r--r-- | tools/render-test/shader-input-layout.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h index 86e7641f0..ed2f57370 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -22,6 +22,7 @@ enum class ShaderInputType UniformData, Object, Aggregate, + Specialize, }; enum class InputTextureContent @@ -248,7 +249,16 @@ public: Slang::String typeName; ValPtr contentVal; - Slang::List<Slang::String> specializationArgs; + }; + + class SpecializeVal : public Val + { + public: + ValPtr contentVal; + Slang::List<Slang::String> typeArgs; + SpecializeVal() + : Val(ShaderInputType::Specialize) + {} }; class ArrayVal : public ParentVal |
