Brandon Jones | 5bf9829 | 2014-06-06 17:19:38 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2014 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // VertexAttribImpl.h: Defines the abstract rx::VertexAttribImpl class. |
| 8 | |
Geoff Lang | 0a73dd8 | 2014-11-19 16:18:08 -0500 | [diff] [blame] | 9 | #ifndef LIBANGLE_RENDERER_VERTEXARRAYIMPL_H_ |
| 10 | #define LIBANGLE_RENDERER_VERTEXARRAYIMPL_H_ |
Brandon Jones | 5bf9829 | 2014-06-06 17:19:38 -0700 | [diff] [blame] | 11 | |
| 12 | #include "common/angleutils.h" |
Geoff Lang | 2b5420c | 2014-11-19 14:20:15 -0500 | [diff] [blame] | 13 | #include "libANGLE/Buffer.h" |
Jamie Madill | 8e34494 | 2015-07-09 14:22:07 -0400 | [diff] [blame] | 14 | #include "libANGLE/VertexArray.h" |
Brandon Jones | 5bf9829 | 2014-06-06 17:19:38 -0700 | [diff] [blame] | 15 | |
| 16 | namespace rx |
| 17 | { |
Jamie Madill | dd43e6c | 2017-03-24 14:18:49 -0400 | [diff] [blame] | 18 | class ContextImpl; |
Brandon Jones | 5bf9829 | 2014-06-06 17:19:38 -0700 | [diff] [blame] | 19 | |
Jamie Madill | f0d10f8 | 2015-03-31 12:56:52 -0400 | [diff] [blame] | 20 | class VertexArrayImpl : angle::NonCopyable |
Brandon Jones | 5bf9829 | 2014-06-06 17:19:38 -0700 | [diff] [blame] | 21 | { |
| 22 | public: |
Jamie Madill | 3f57268 | 2016-04-26 13:41:36 -0400 | [diff] [blame] | 23 | VertexArrayImpl(const gl::VertexArrayState &data) : mData(data) {} |
Brandon Jones | 18fe429 | 2014-07-22 13:03:06 -0700 | [diff] [blame] | 24 | virtual ~VertexArrayImpl() { } |
Jamie Madill | c564c07 | 2017-06-01 12:45:42 -0400 | [diff] [blame^] | 25 | virtual void syncState(const gl::Context *context, const gl::VertexArray::DirtyBits &dirtyBits) |
| 26 | { |
| 27 | } |
| 28 | |
Jamie Madill | 8e34494 | 2015-07-09 14:22:07 -0400 | [diff] [blame] | 29 | protected: |
Jamie Madill | 3f57268 | 2016-04-26 13:41:36 -0400 | [diff] [blame] | 30 | const gl::VertexArrayState &mData; |
Brandon Jones | 5bf9829 | 2014-06-06 17:19:38 -0700 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | } |
| 34 | |
Geoff Lang | 0a73dd8 | 2014-11-19 16:18:08 -0500 | [diff] [blame] | 35 | #endif // LIBANGLE_RENDERER_VERTEXARRAYIMPL_H_ |