blob: 5d5497a263a1e08016ad9f93297411578803f523 [file] [log] [blame]
Jamie Madill9e54b5a2016-05-25 12:57:39 -04001//
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// VertexArrayVk.cpp:
7// Implements the class methods for VertexArrayVk.
8//
9
10#include "libANGLE/renderer/vulkan/VertexArrayVk.h"
11
12#include "common/debug.h"
13
Jamie Madillc564c072017-06-01 12:45:42 -040014#include "libANGLE/Context.h"
Jamie Madilldd43e6c2017-03-24 14:18:49 -040015#include "libANGLE/renderer/vulkan/ContextVk.h"
16
Jamie Madill9e54b5a2016-05-25 12:57:39 -040017namespace rx
18{
19
Jamie Madill492f58e2017-10-09 19:41:33 -040020VertexArrayVk::VertexArrayVk(const gl::VertexArrayState &state) : VertexArrayImpl(state)
Jamie Madill9e54b5a2016-05-25 12:57:39 -040021{
22}
23
Jamie Madill4928b7c2017-06-20 12:57:39 -040024void VertexArrayVk::destroy(const gl::Context *context)
Jamie Madill9e54b5a2016-05-25 12:57:39 -040025{
26}
27
Jamie Madillc564c072017-06-01 12:45:42 -040028void VertexArrayVk::syncState(const gl::Context *context,
29 const gl::VertexArray::DirtyBits &dirtyBits)
Jamie Madilldd43e6c2017-03-24 14:18:49 -040030{
31 ASSERT(dirtyBits.any());
Jamie Madill72106562017-03-24 14:18:50 -040032
33 // TODO(jmadill): Use pipeline cache.
Jamie Madillc564c072017-06-01 12:45:42 -040034 auto contextVk = GetImplAs<ContextVk>(context);
Jamie Madill72106562017-03-24 14:18:50 -040035 contextVk->invalidateCurrentPipeline();
Jamie Madilldd43e6c2017-03-24 14:18:49 -040036}
37
Jamie Madill9e54b5a2016-05-25 12:57:39 -040038} // namespace rx