summaryrefslogtreecommitdiffstats
path: root/tools/render-test/shader-input-layout.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-10-23 10:35:44 -0400
committerYong He <yonghe@outlook.com>2017-10-23 10:35:44 -0400
commitcc6184ebc4d0611be892eaff119de99f8b9e1ca6 (patch)
treedf730688789d46e3d956701bc4b87f2f5f47d916 /tools/render-test/shader-input-layout.h
parent0c8efd12667e66b3177c5d8557a0677c7d5d0e4e (diff)
Work in-progress: simple compute test passed. (d3d renderer)
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
-rw-r--r--tools/render-test/shader-input-layout.h11
1 files changed, 10 insertions, 1 deletions
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<ShaderInputLayoutEntry> entries;
+ int numRenderTargets = 1;
void Parse(const char * source);
};
}