1 #ifndef _VKTGEOMETRYBASICCLASS_HPP
2 #define _VKTGEOMETRYBASICCLASS_HPP
3 /*------------------------------------------------------------------------
4 * Vulkan Conformance Tests
5 * ------------------------
7 * Copyright (c) 2016 The Khronos Group Inc.
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
23 * \brief Geometry Basic Class
24 *//*--------------------------------------------------------------------*/
26 #include "tcuDefs.hpp"
27 #include "vktTestCase.hpp"
28 #include "vkTypeUtil.hpp"
30 #include "vktGeometryTestsUtil.hpp"
37 class GeometryExpanderRenderTestInstance : public TestInstance
40 GeometryExpanderRenderTestInstance (Context& context,
41 const vk::VkPrimitiveTopology primitiveType,
44 tcu::TestStatus iterate (void);
47 virtual vk::Move<vk::VkPipelineLayout> createPipelineLayout (const vk::DeviceInterface& vk, const vk::VkDevice device);
48 virtual void bindDescriptorSets (const vk::DeviceInterface& /*vk*/,
49 const vk::VkDevice /*device*/,
50 vk::Allocator& /*memAlloc*/,
51 const vk::VkCommandBuffer& /*cmdBuffer*/,
52 const vk::VkPipelineLayout& /*pipelineLayout*/){};
53 virtual void drawCommand (const vk::VkCommandBuffer& cmdBuffer);
55 const vk::VkPrimitiveTopology m_primitiveType;
56 const std::string m_name;
57 int m_numDrawVertices;
58 std::vector<tcu::Vec4> m_vertexPosData;
59 std::vector<tcu::Vec4> m_vertexAttrData;
66 #endif // _VKTGEOMETRYBASICCLASS_HPP