From cc6184ebc4d0611be892eaff119de99f8b9e1ca6 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 23 Oct 2017 10:35:44 -0400 Subject: Work in-progress: simple compute test passed. (d3d renderer) --- tools/render-test/shader-input-layout.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (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 788a72224..f2258b7b9 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -9,12 +9,19 @@ namespace renderer_test { Buffer, Texture, Sampler, CombinedTextureSampler }; + enum class InputTextureContent + { + Zero, One, ChessBoard, Gradient + }; struct InputTextureDesc { int dimension = 2; int arrayLength = 0; bool isCube = false; bool isDepthTexture = false; + bool isRWTexture = false; + int size = 4; + InputTextureContent content = InputTextureContent::One; }; enum class InputBufferType { @@ -37,7 +44,8 @@ namespace renderer_test InputTextureDesc textureDesc; InputBufferDesc bufferDesc; InputSamplerDesc samplerDesc; - int hlslRegister = -1; + bool isOutput = false; + int hlslBinding = -1; int glslBinding = -1; int glslLocation = -1; }; @@ -45,6 +53,7 @@ namespace renderer_test { public: Slang::List entries; + int numRenderTargets = 1; void Parse(const char * source); }; } -- cgit v1.2.3