1 #ifndef _VKTAPIBUFFERCOMPUTEINSTANCE_HPP 2 #define _VKTAPIBUFFERCOMPUTEINSTANCE_HPP 3 /*------------------------------------------------------------------------- 4 * Vulkan Conformance Tests 5 * ------------------------ 6 * 7 * Copyright (c) 2015 The Khronos Group Inc. 8 * Copyright (c) 2015 Samsung Electronics Co., Ltd. 9 * Copyright (c) 2015 Google Inc. 10 * 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 14 * 15 * http://www.apache.org/licenses/LICENSE-2.0 16 * 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. 22 * 23 *//*--------------------------------------------------------------------*/ 24 25 #include "tcuDefs.hpp" 26 #include "tcuVectorType.hpp" 27 #include "vkRef.hpp" 28 #include "vkMemUtil.hpp" 29 #include "vktTestCase.hpp" 30 31 namespace vkt 32 { 33 namespace api 34 { 35 36 vk::Move<vk::VkBuffer> createColorDataBuffer ( deUint32 offset, 37 deUint32 bufferSize, 38 const tcu::Vec4& color1, 39 const tcu::Vec4& color2, 40 de::MovePtr<vk::Allocation>* outAllocation, 41 vkt::Context& context); 42 43 vk::Move<vk::VkDescriptorSetLayout> createDescriptorSetLayout (vkt::Context& context); 44 45 vk::Move<vk::VkDescriptorPool> createDescriptorPool (vkt::Context& context); 46 47 vk::Move<vk::VkDescriptorSet> createDescriptorSet (vk::VkDescriptorPool pool, 48 vk::VkDescriptorSetLayout layout, 49 vk::VkBuffer viewA, deUint32 offsetA, 50 vk::VkBuffer viewB, 51 deUint32 offsetB, 52 vk::VkBuffer resBuf, 53 vkt::Context& context); 54 55 } // api 56 } // vkt 57 58 #endif // _VKTAPIBUFFERCOMPUTEINSTANCE_HPP 59