Jamie Madill | 7b57b9d | 2017-01-13 09:33:38 -0500 | [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 | // RenderTargetVk: |
| 7 | // Wrapper around a Vulkan renderable resource, using an ImageView. |
| 8 | // |
| 9 | |
| 10 | #include "libANGLE/renderer/vulkan/RenderTargetVk.h" |
| 11 | |
| 12 | namespace rx |
| 13 | { |
| 14 | |
| 15 | RenderTargetVk::RenderTargetVk() |
Jamie Madill | 7b57b9d | 2017-01-13 09:33:38 -0500 | [diff] [blame] | 16 | { |
Geoff Lang | bd6ae4a | 2018-01-29 15:51:18 -0500 | [diff] [blame^] | 17 | reset(); |
| 18 | } |
| 19 | |
| 20 | void RenderTargetVk::reset() |
| 21 | { |
| 22 | format = nullptr; |
| 23 | image = nullptr; |
| 24 | imageView = nullptr; |
| 25 | extents = gl::Extents(); |
| 26 | samples = VK_SAMPLE_COUNT_1_BIT; |
| 27 | resource = nullptr; |
Jamie Madill | 7b57b9d | 2017-01-13 09:33:38 -0500 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | } // namespace rx |