1 #ifndef _VKTAPIBUFFERCOMPUTEINSTANCE_HPP
2 #define _VKTAPIBUFFERCOMPUTEINSTANCE_HPP
3 /*-------------------------------------------------------------------------
4 * Vulkan Conformance Tests
5 * ------------------------
7 * Copyright (c) 2015 The Khronos Group Inc.
8 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
9 * Copyright (c) 2015 Google Inc.
11 * Licensed under the Apache License, Version 2.0 (the "License");
12 * you may not use this file except in compliance with the License.
13 * You may obtain a copy of the License at
15 * http://www.apache.org/licenses/LICENSE-2.0
17 * Unless required by applicable law or agreed to in writing, software
18 * distributed under the License is distributed on an "AS IS" BASIS,
19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 * See the License for the specific language governing permissions and
21 * limitations under the License.
23 *//*--------------------------------------------------------------------*/
25 #include "tcuDefs.hpp"
26 #include "tcuVectorType.hpp"
28 #include "vkMemUtil.hpp"
29 #include "vktTestCase.hpp"
36 vk::Move<vk::VkBuffer> createDataBuffer (vkt::Context& context,
40 deUint32 initDataSize,
42 de::MovePtr<vk::Allocation>* outAllocation);
44 vk::Move<vk::VkBuffer> createColorDataBuffer ( deUint32 offset,
46 const tcu::Vec4& color1,
47 const tcu::Vec4& color2,
48 de::MovePtr<vk::Allocation>* outAllocation,
49 vkt::Context& context);
51 vk::Move<vk::VkDescriptorSetLayout> createDescriptorSetLayout (vkt::Context& context);
53 vk::Move<vk::VkDescriptorPool> createDescriptorPool (vkt::Context& context);
55 vk::Move<vk::VkDescriptorSet> createDescriptorSet (vkt::Context& context,
56 vk::VkDescriptorPool pool,
57 vk::VkDescriptorSetLayout layout,
62 vk::Move<vk::VkDescriptorSet> createDescriptorSet (vk::VkDescriptorPool pool,
63 vk::VkDescriptorSetLayout layout,
64 vk::VkBuffer viewA, deUint32 offsetA,
68 vkt::Context& context);
73 #endif // _VKTAPIBUFFERCOMPUTEINSTANCE_HPP