Lines Matching defs:context
616 Renderer (Context& context,
632 const DeviceInterface& vk = context.getDeviceInterface();
633 const VkDevice device = context.getDevice();
634 const deUint32 queueFamilyIndex = context.getUniversalQueueFamilyIndex();
635 Allocator& allocator = context.getDefaultAllocator();
649 m_tessellationControlModule = createShaderModule (vk, device, context.getBinaryCollection().get("tesc"), 0u);
650 if (context.contextSupports(VK_API_VERSION_1_2))
651 m_tessellationEvaluationModule = createShaderModule (vk, device, context.getBinaryCollection().get("tese_1_2"), 0u);
653 m_tessellationEvaluationModule = createShaderModule(vk, device, context.getBinaryCollection().get("tese"), 0u);
656 if (context.contextSupports(VK_API_VERSION_1_2))
657 m_vertexModule = createShaderModule(vk, device, context.getBinaryCollection().get("vert_1_2"), 0u);
659 m_vertexModule = createShaderModule(vk, device, context.getBinaryCollection().get("vert"), 0u);
661 m_fragmentModule = createShaderModule (vk, device, context.getBinaryCollection().get("frag"), 0u);
681 void draw (Context& context, const VkBuffer colorBuffer) const
683 const DeviceInterface& vk = context.getDeviceInterface();
684 const VkDevice device = context.getDevice();
685 const VkQueue queue = context.getUniversalQueue();
699 beginSecondaryCmdBuffer(context, *m_secCmdBuffer, VK_RENDERING_CONTENTS_SECONDARY_COMMAND_BUFFERS_BIT);
704 beginSecondaryCmdBuffer(context, *m_secCmdBuffer);
706 drawCommands(context, *m_secCmdBuffer);
716 preRenderCommands(context, *m_cmdBuffer);
727 postRenderCommands(context, colorBuffer);
734 preRenderCommands(context, *m_cmdBuffer);
737 drawCommands(context, *m_cmdBuffer);
739 postRenderCommands(context, colorBuffer);
749 preRenderCommands(context, *m_cmdBuffer);
750 beginRenderPass(context, *m_cmdBuffer, renderArea, clearValue);
751 drawCommands(context, *m_cmdBuffer);
753 postRenderCommands(context, colorBuffer);
763 void preRenderCommands(Context& context, VkCommandBuffer cmdBuffer) const
767 const DeviceInterface& vk = context.getDeviceInterface();
773 void postRenderCommands(Context& context, VkBuffer colorBuffer) const
775 const DeviceInterface& vk = context.getDeviceInterface();
779 void beginRenderPass(Context& context, VkCommandBuffer cmdBuffer, const VkRect2D& renderArea, const VkClearValue& clearValue) const
781 const DeviceInterface& vk = context.getDeviceInterface();
795 void drawCommands (Context& context, VkCommandBuffer cmdBuffer) const
797 const DeviceInterface& vk = context.getDeviceInterface();
807 void beginSecondaryCmdBuffer(Context& context, VkCommandBuffer cmdBuffer, VkRenderingFlagsKHR renderingFlags = 0u) const
835 const DeviceInterface& vk = context.getDeviceInterface();
870 void checkRequirements (Context& context, const TestParams params)
872 context.requireDeviceCoreFeature(DEVICE_CORE_FEATURE_MULTI_VIEWPORT);
873 context.requireDeviceFunctionality("VK_EXT_shader_viewport_index_layer");
876 context.requireDeviceFunctionality("VK_KHR_dynamic_rendering");
878 const VkPhysicalDeviceLimits limits = context.getDeviceProperties().limits;
887 tcu::TestStatus testVertexShader (Context& context, const TestParams params)
889 const DeviceInterface& vk = context.getDeviceInterface();
890 const VkDevice device = context.getDevice();
891 Allocator& allocator = context.getDefaultAllocator();
912 context.getTestContext().getLog()
919 const Renderer renderer (context, params.groupParams, renderSize, params.numLayers, colorFormat, clearColor, vertices, Renderer::VERTEX);
920 renderer.draw(context, colorBuffer->object());
935 if (!tcu::floatThresholdCompare(context.getTestContext().getLog(), imageSetName.c_str(), imageSetDesc.c_str(), referenceImage.getAccess(), resultImage, Vec4(0.02f), tcu::COMPARE_LOG_RESULT))
943 tcu::TestStatus testTessellationShader (Context& context, const TestParams params)
945 const VkPhysicalDeviceFeatures& features = context.getDeviceFeatures();
949 const DeviceInterface& vk = context.getDeviceInterface();
950 const VkDevice device = context.getDevice();
951 Allocator& allocator = context.getDefaultAllocator();
972 context.getTestContext().getLog()
979 const Renderer renderer (context, params.groupParams, renderSize, params.numLayers, colorFormat, clearColor, vertices, Renderer::TESSELLATION);
980 renderer.draw(context, colorBuffer->object());
994 if (!tcu::floatThresholdCompare(context.getTestContext().getLog(), imageSetName.c_str(), imageSetDesc.c_str(), referenceImage.getAccess(), resultImage, Vec4(0.02f), tcu::COMPARE_LOG_RESULT))