Lines Matching defs:device

98 	const VkDevice					device				= context.getDevice();
123 buffer = createBuffer(vk, device, &bufferParams);
124 bufferAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible);
125 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()));
153 flushAlloc(vk, device, *bufferAlloc);
157 copyBufferToImage(vk, device, queue, queueFamilyIndex, *buffer, bufferSize, copyRegions, DE_NULL, aspectMask, 1, 1, destImage, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT);
206 Move<VkPipelineLayout> createPipelineLayout (const DeviceInterface& vk, const VkDevice device);
208 const VkDevice device,
252 Move<VkPipelineLayout> VaryingOutputCountTestInstance::createPipelineLayout (const DeviceInterface& vk, const VkDevice device)
258 .build(vk, device);
261 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
262 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
264 return makePipelineLayout(vk, device, *m_descriptorSetLayout);
312 m_texture = createImage(vk, device, &imageParams);
313 m_allocation = memAlloc.allocate(getImageMemoryRequirements(vk, device, *m_texture), MemoryRequirement::Any);
314 VK_CHECK(vk.bindImageMemory(device, *m_texture, m_allocation->getMemory(), m_allocation->getOffset()));
319 .build(vk, device);
322 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
323 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
325 return makePipelineLayout(vk, device, *m_descriptorSetLayout);
328 return makePipelineLayout(vk, device);
331 void VaryingOutputCountTestInstance::bindDescriptorSets (const DeviceInterface& vk, const VkDevice device, Allocator& memAlloc,
338 m_buffer = createBuffer(vk, device, &bufferCreateInfo);
339 m_allocation = memAlloc.allocate(getBufferMemoryRequirements(vk, device, *m_buffer), MemoryRequirement::HostVisible);
341 VK_CHECK(vk.bindBufferMemory(device, *m_buffer, m_allocation->getMemory(), m_allocation->getOffset()));
344 flushAlloc(vk, device, *m_allocation);
350 .update(vk, device);
379 m_sampler = createSampler(vk, device, &samplerParams);
397 m_imageView = createImageView(vk, device, &viewParams);
401 .update(vk, device);
522 const VkDevice device = m_context.getDevice();
537 m_indicesBuffer = createBuffer(vk, device, &indexBufferParams);
538 m_allocation = memAlloc.allocate(getBufferMemoryRequirements(vk, device, *m_indicesBuffer), MemoryRequirement::HostVisible);
539 VK_CHECK(vk.bindBufferMemory(device, *m_indicesBuffer, m_allocation->getMemory(), m_allocation->getOffset()));
542 flushAlloc(vk, device, *m_allocation);