diff options
| author | YONGH\yongh <yonghe@outlook.com> | 2017-10-25 22:13:11 -0400 |
|---|---|---|
| committer | YONGH\yongh <yonghe@outlook.com> | 2017-10-25 22:13:11 -0400 |
| commit | 14d93b03c2238cfc9541f92c2d5ab24a7373b82d (patch) | |
| tree | 8fb90736797d2551c3836701af5786513518791e /tools/render-test/render.h | |
| parent | 9a28965ceaf713b275efddf8721881cd8d7aab67 (diff) | |
fix d3d11 usage
Diffstat (limited to 'tools/render-test/render.h')
| -rw-r--r-- | tools/render-test/render.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/render-test/render.h b/tools/render-test/render.h index 24610eb4d..dec48cda4 100644 --- a/tools/render-test/render.h +++ b/tools/render-test/render.h @@ -49,8 +49,7 @@ enum class Format enum class BufferFlavor { Constant, - Vertex, - Storage, + Vertex }; struct BufferDesc @@ -114,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; }; |
