blob: 778dd69ecdbb4041168d909dbb96a1f788afb8e2 [file] [log] [blame]
Brandon Jones5bf98292014-06-06 17:19:38 -07001//
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 Lang0a73dd82014-11-19 16:18:08 -05009#ifndef LIBANGLE_RENDERER_VERTEXARRAYIMPL_H_
10#define LIBANGLE_RENDERER_VERTEXARRAYIMPL_H_
Brandon Jones5bf98292014-06-06 17:19:38 -070011
12#include "common/angleutils.h"
Geoff Lang2b5420c2014-11-19 14:20:15 -050013#include "libANGLE/Buffer.h"
Jamie Madill8e344942015-07-09 14:22:07 -040014#include "libANGLE/VertexArray.h"
Brandon Jones5bf98292014-06-06 17:19:38 -070015
16namespace rx
17{
Jamie Madilldd43e6c2017-03-24 14:18:49 -040018class ContextImpl;
Brandon Jones5bf98292014-06-06 17:19:38 -070019
Jamie Madillf0d10f82015-03-31 12:56:52 -040020class VertexArrayImpl : angle::NonCopyable
Brandon Jones5bf98292014-06-06 17:19:38 -070021{
22 public:
Jamie Madill492f58e2017-10-09 19:41:33 -040023 VertexArrayImpl(const gl::VertexArrayState &state) : mState(state) {}
Frank Henigman0af5b862018-03-27 20:19:33 -040024 virtual gl::Error syncState(const gl::Context *context,
25 const gl::VertexArray::DirtyBits &dirtyBits,
26 const gl::VertexArray::DirtyAttribBitsArray &attribBits,
27 const gl::VertexArray::DirtyBindingBitsArray &bindingBits)
Jamie Madillc564c072017-06-01 12:45:42 -040028 {
Frank Henigman0af5b862018-03-27 20:19:33 -040029 return gl::NoError();
Jamie Madillc564c072017-06-01 12:45:42 -040030 }
31
Jamie Madill4928b7c2017-06-20 12:57:39 -040032 virtual void destroy(const gl::Context *context) {}
33 virtual ~VertexArrayImpl() {}
34
Jamie Madill8e344942015-07-09 14:22:07 -040035 protected:
Jamie Madill492f58e2017-10-09 19:41:33 -040036 const gl::VertexArrayState &mState;
Brandon Jones5bf98292014-06-06 17:19:38 -070037};
38
Jamie Madille858cb12018-03-27 09:44:32 -040039} // namespace rx
Brandon Jones5bf98292014-06-06 17:19:38 -070040
Geoff Lang0a73dd82014-11-19 16:18:08 -050041#endif // LIBANGLE_RENDERER_VERTEXARRAYIMPL_H_