blob: 8098bff07deb439536c93e8dfb307c7465244e9d [file] [log] [blame]
Jamie Madill7b57b9d2017-01-13 09:33:38 -05001//
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
12namespace rx
13{
14
15RenderTargetVk::RenderTargetVk()
Jamie Madill7b57b9d2017-01-13 09:33:38 -050016{
Geoff Langbd6ae4a2018-01-29 15:51:18 -050017 reset();
18}
19
20void 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 Madill7b57b9d2017-01-13 09:33:38 -050028}
29
30} // namespace rx