1 //
2 // Copyright 2016 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 // VertexArrayNULL.cpp:
7 //    Implements the class methods for VertexArrayNULL.
8 //
9 
10 #include "libANGLE/renderer/null/VertexArrayNULL.h"
11 
12 #include "common/debug.h"
13 
14 namespace rx
15 {
16 
VertexArrayNULL(const gl::VertexArrayState & data)17 VertexArrayNULL::VertexArrayNULL(const gl::VertexArrayState &data) : VertexArrayImpl(data) {}
18 
syncState(const gl::Context * context,const gl::VertexArray::DirtyBits & dirtyBits,gl::VertexArray::DirtyAttribBitsArray * attribBits,gl::VertexArray::DirtyBindingBitsArray * bindingBits)19 angle::Result VertexArrayNULL::syncState(const gl::Context *context,
20                                          const gl::VertexArray::DirtyBits &dirtyBits,
21                                          gl::VertexArray::DirtyAttribBitsArray *attribBits,
22                                          gl::VertexArray::DirtyBindingBitsArray *bindingBits)
23 {
24     // Clear the dirty bits in the back-end here.
25     memset(attribBits, 0, sizeof(gl::VertexArray::DirtyAttribBitsArray));
26     memset(bindingBits, 0, sizeof(gl::VertexArray::DirtyBindingBitsArray));
27 
28     return angle::Result::Continue;
29 }
30 
31 }  // namespace rx
32