summaryrefslogtreecommitdiffstats
path: root/tools/render-test/render.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-10-24 19:14:14 -0400
committerGitHub <noreply@github.com>2017-10-24 19:14:14 -0400
commit3043171dae37d18015d6cd26287d492c576f4f1a (patch)
tree1037732c1e90afd36b588851ce5755d64188bcdb /tools/render-test/render.h
parentab64cf2ec05980d72cb2bad45e629d10ebbefdc1 (diff)
parent434d3428932ccaa0f6834d03c37adcab37d17a01 (diff)
Merge pull request #227 from csyonghe/master
Extending render-test to support various resource inputs
Diffstat (limited to 'tools/render-test/render.h')
-rw-r--r--tools/render-test/render.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/render-test/render.h b/tools/render-test/render.h
index 7f8f2fffa..706868e9a 100644
--- a/tools/render-test/render.h
+++ b/tools/render-test/render.h
@@ -3,13 +3,14 @@
#include "options.h"
#include "window.h"
+#include "shader-input-layout.h"
namespace renderer_test {
typedef struct Buffer Buffer;
typedef struct InputLayout InputLayout;
typedef struct ShaderProgram ShaderProgram;
-
+typedef struct BindingState BindingState;
struct ShaderCompileRequest
{
struct SourceInfo
@@ -89,11 +90,11 @@ public:
virtual void presentFrame() = 0;
virtual void captureScreenShot(char const* outputPath) = 0;
-
+ virtual void serializeOutput(BindingState * state, char const* outputPath) = 0;
virtual Buffer* createBuffer(BufferDesc const& desc) = 0;
virtual InputLayout* createInputLayout(InputElementDesc const* inputElements, UInt inputElementCount) = 0;
-
+ virtual BindingState* createBindingState(const ShaderInputLayout & shaderInput) = 0;
virtual ShaderCompiler* getShaderCompiler() = 0;
virtual void* map(Buffer* buffer, MapFlavor flavor) = 0;
@@ -101,7 +102,7 @@ public:
virtual void setInputLayout(InputLayout* inputLayout) = 0;
virtual void setPrimitiveTopology(PrimitiveTopology topology) = 0;
-
+ virtual void setBindingState(BindingState * state) = 0;
virtual void setVertexBuffers(UInt startSlot, UInt slotCount, Buffer* const* buffers, UInt const* strides, UInt const* offsets) = 0;
inline void setVertexBuffer(UInt slot, Buffer* buffer, UInt stride, UInt offset = 0)