Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 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 | // 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 Madill | dd43e6c | 2017-03-24 14:18:49 -0400 | [diff] [blame] | 14 | #include "libANGLE/renderer/vulkan/ContextVk.h" |
| 15 | |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 16 | namespace rx |
| 17 | { |
| 18 | |
| 19 | VertexArrayVk::VertexArrayVk(const gl::VertexArrayState &data) : VertexArrayImpl(data) |
| 20 | { |
| 21 | } |
| 22 | |
| 23 | VertexArrayVk::~VertexArrayVk() |
| 24 | { |
| 25 | } |
| 26 | |
Jamie Madill | dd43e6c | 2017-03-24 14:18:49 -0400 | [diff] [blame] | 27 | void VertexArrayVk::syncState(ContextImpl *contextImpl, const gl::VertexArray::DirtyBits &dirtyBits) |
| 28 | { |
| 29 | ASSERT(dirtyBits.any()); |
Jamie Madill | 7210656 | 2017-03-24 14:18:50 -0400 | [diff] [blame^] | 30 | |
| 31 | // TODO(jmadill): Use pipeline cache. |
| 32 | auto contextVk = GetAs<ContextVk>(contextImpl); |
| 33 | contextVk->invalidateCurrentPipeline(); |
Jamie Madill | dd43e6c | 2017-03-24 14:18:49 -0400 | [diff] [blame] | 34 | } |
| 35 | |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 36 | } // namespace rx |