summaryrefslogtreecommitdiff
path: root/tools/render-test/shader-input-layout.h
diff options
context:
space:
mode:
authorYONGH\yongh <yonghe@outlook.com>2017-10-25 16:33:18 -0400
committerYONGH\yongh <yonghe@outlook.com>2017-10-25 16:33:18 -0400
commit5894c3b1a96e9db41f50b2b178f81568ff421776 (patch)
tree035aedbf9c6d64ded7dd91338997856d814bf813 /tools/render-test/shader-input-layout.h
parent434d3428932ccaa0f6834d03c37adcab37d17a01 (diff)
finish up opengl renderer implementation for input resource binding.
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
-rw-r--r--tools/render-test/shader-input-layout.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h
index f2258b7b9..9dae75270 100644
--- a/tools/render-test/shader-input-layout.h
+++ b/tools/render-test/shader-input-layout.h
@@ -49,6 +49,16 @@ namespace renderer_test
int glslBinding = -1;
int glslLocation = -1;
};
+
+ struct TextureData
+ {
+ Slang::List<Slang::List<unsigned int>> dataBuffer;
+ int textureSize;
+ int mipLevels;
+ int arraySize;
+ };
+ void generateTextureData(TextureData & output, const InputTextureDesc & desc);
+
class ShaderInputLayout
{
public: