Vulkan: Implement basic Clear and ReadPixels.
This enables the simple operations clear test on Vulkan. The current
implementation is very synchronous - it will block and finish the
current command buffer if there is any possibility of a race.
BUG=angleproject:1319
Change-Id: If01fe9a19ed6f539639a38786193d3626164cada
Reviewed-on: https://chromium-review.googlesource.com/367754
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/renderer/vulkan/RenderTargetVk.cpp b/src/libANGLE/renderer/vulkan/RenderTargetVk.cpp
new file mode 100644
index 0000000..bb57424
--- /dev/null
+++ b/src/libANGLE/renderer/vulkan/RenderTargetVk.cpp
@@ -0,0 +1,20 @@
+//
+// Copyright 2016 The ANGLE Project Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// RenderTargetVk:
+// Wrapper around a Vulkan renderable resource, using an ImageView.
+//
+
+#include "libANGLE/renderer/vulkan/RenderTargetVk.h"
+
+namespace rx
+{
+
+RenderTargetVk::RenderTargetVk()
+ : format(nullptr), image(nullptr), imageView(nullptr), extents(), samples(VK_SAMPLE_COUNT_1_BIT)
+{
+}
+
+} // namespace rx