Lines Matching defs:context
2011 de::MovePtr<vk::Allocation> allocateAndBindMemory (Context& context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs)
2013 const vk::DeviceInterface& vkd = context.getDeviceInterface();
2014 const vk::VkMemoryRequirements bufReqs = vk::getBufferMemoryRequirements(vkd, context.getDevice(), buffer);
2015 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs);
2017 vkd.bindBufferMemory(context.getDevice(), buffer, memory->getMemory(), memory->getOffset());
2022 vk::Move<vk::VkBuffer> createBuffer (Context& context, vk::VkDeviceSize bufferSize, vk::VkBufferUsageFlags usageFlags)
2024 const vk::VkDevice vkDevice = context.getDevice();
2025 const vk::DeviceInterface& vk = context.getDeviceInterface();
2026 const deUint32 queueFamilyIndex = context.getUniversalQueueFamilyIndex();
2048 SSBOLayoutCaseInstance (Context& context,
2073 SSBOLayoutCaseInstance::SSBOLayoutCaseInstance (Context& context,
2080 : TestInstance (context)
2479 TestInstance* SSBOLayoutCase::createInstance (Context& context) const
2481 return new SSBOLayoutCaseInstance(context, m_bufferMode, m_interface, m_refLayout, m_initialData, m_writeData, m_usePhysStorageBuffer);
2484 void SSBOLayoutCase::checkSupport(Context& context) const
2486 if (!context.isDeviceFunctionalitySupported("VK_KHR_relaxed_block_layout") && usesRelaxedLayout(m_interface))
2488 if (!context.get16BitStorageFeatures().storageBuffer16BitAccess && uses16BitStorage(m_interface))
2490 if (!context.get8BitStorageFeatures().storageBuffer8BitAccess && uses8BitStorage(m_interface))
2492 if (!context.getScalarBlockLayoutFeatures().scalarBlockLayout && usesScalarLayout(m_interface))
2494 if (m_usePhysStorageBuffer && !context.isBufferDeviceAddressSupported())
2496 if (usesDescriptorIndexing(m_interface) && ( !context.getDescriptorIndexingFeatures().shaderStorageBufferArrayNonUniformIndexing ||
2497 !context.getDescriptorIndexingFeatures().runtimeDescriptorArray ) )
2500 const vk::VkPhysicalDeviceProperties &properties = context.getDeviceProperties();