blob: f31cf78915189ebb8fa6e0cecc44a0973f76415c [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 Madill3f572682016-04-26 13:41:36 -040023 VertexArrayImpl(const gl::VertexArrayState &data) : mData(data) {}
Brandon Jones18fe4292014-07-22 13:03:06 -070024 virtual ~VertexArrayImpl() { }
Jamie Madillc564c072017-06-01 12:45:42 -040025 virtual void syncState(const gl::Context *context, const gl::VertexArray::DirtyBits &dirtyBits)
26 {
27 }
28
Jamie Madill8e344942015-07-09 14:22:07 -040029 protected:
Jamie Madill3f572682016-04-26 13:41:36 -040030 const gl::VertexArrayState &mData;
Brandon Jones5bf98292014-06-06 17:19:38 -070031};
32
33}
34
Geoff Lang0a73dd82014-11-19 16:18:08 -050035#endif // LIBANGLE_RENDERER_VERTEXARRAYIMPL_H_