From 5c56479c7b742f94ebf4a97d93826b2a5e4f279d Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 1 Sep 2020 13:47:26 -0700 Subject: Support dynamic existential shader parameters in render-test (#1525) * Support dynamic existential shader parameters in render-test * Fix linux build error. * Fixes. * Fix code review issues. * Fix gcc error. * More fixes. * More fixes. --- tools/render-test/shader-input-layout.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/render-test/shader-input-layout.h') diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h index 4c8d0dfa2..4abbd6fb5 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -63,11 +63,24 @@ struct ArrayDesc int size = 0; }; +enum class RTTIDataEntryType +{ + RTTIObject, WitnessTable +}; +struct RTTIDataEntry +{ + RTTIDataEntryType type; + Slang::String typeName; + Slang::String interfaceName; + unsigned int offset; +}; + class ShaderInputLayoutEntry { public: ShaderInputType type; Slang::List bufferData; + Slang::List rttiEntries; InputTextureDesc textureDesc; InputBufferDesc bufferDesc; InputSamplerDesc samplerDesc; -- cgit v1.2.3