summaryrefslogtreecommitdiffstats
path: root/tools/render-test/render.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-10-25 23:16:53 -0400
committerGitHub <noreply@github.com>2017-10-25 23:16:53 -0400
commit56bc82656c2b2cd581a430713bc25b409bb4da4f (patch)
treef5e667617ae8dd1853d4977ec13c153e9fafca0e /tools/render-test/render.h
parent3043171dae37d18015d6cd26287d492c576f4f1a (diff)
parent3a7dcf6d4d7a9c98ae769ad85f131c16802d1f72 (diff)
Merge pull request #230 from csyonghe/master
Finish up implementation of render-test
Diffstat (limited to 'tools/render-test/render.h')
-rw-r--r--tools/render-test/render.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/render-test/render.h b/tools/render-test/render.h
index 706868e9a..dec48cda4 100644
--- a/tools/render-test/render.h
+++ b/tools/render-test/render.h
@@ -43,13 +43,13 @@ enum class Format
{
Unknown,
RGB_Float32,
+ RG_Float32,
};
enum class BufferFlavor
{
Constant,
- Vertex,
- Storage,
+ Vertex
};
struct BufferDesc
@@ -113,15 +113,10 @@ public:
virtual void setShaderProgram(ShaderProgram* program) = 0;
virtual void setConstantBuffers(UInt startSlot, UInt slotCount, Buffer* const* buffers, UInt const* offsets) = 0;
- virtual void setStorageBuffers(UInt startSlot, UInt slotCount, Buffer* const* buffers, UInt const* offsets) = 0;
inline void setConstantBuffer(UInt slot, Buffer* buffer, UInt offset = 0)
{
setConstantBuffers(slot, 1, &buffer, &offset);
}
- inline void setStorageBuffer(UInt slot, Buffer* buffer, UInt offset = 0)
- {
- setStorageBuffers(slot, 1, &buffer, &offset);
- }
virtual void draw(UInt vertexCount, UInt startVertex = 0) = 0;
virtual void dispatchCompute(int x, int y, int z) = 0;
};