Lines Matching refs:device

128 		const VkDevice			device		= context.getDevice();
145 m_vertexBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator, makeBufferCreateInfo(vertexDataSizeBytes, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), MemoryRequirement::HostVisible));
152 flushAlloc(vk, device, alloc);
161 m_indexBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator, makeBufferCreateInfo(indexBufferSizeBytes, VK_BUFFER_USAGE_INDEX_BUFFER_BIT), MemoryRequirement::HostVisible));
170 flushAlloc(vk, device, alloc);
238 const VkDevice device = context.getDevice();
246 invalidateAlloc(vk, device, alloc);
254 const VkDevice device = context.getDevice();
258 flushAlloc(vk, device, alloc);
643 const VkDevice device = m_context.getDevice();
647 m_hostBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator, makeBufferCreateInfo(m_resource.getBuffer().size, hostBufferUsage), MemoryRequirement::HostVisible));
656 flushAlloc(vk, device, alloc);
684 // Insert a barrier so buffer data is available to the device
900 const VkDevice device = m_context.getDevice();
904 vk, device, allocator, makeBufferCreateInfo(m_bufferSize, VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT),
912 flushAlloc(vk, device, alloc);
917 vk, device, allocator,
1515 const VkDevice device = context.getDevice();
1524 m_colorAttachmentImage = de::MovePtr<Image>(new Image(vk, device, allocator,
1531 m_colorAttachmentView = makeImageView (vk, device, **m_colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, m_colorFormat, m_colorImageSubresourceRange);
1532 m_renderPass = makeRenderPass (vk, device, m_colorFormat);
1533 m_framebuffer = makeFramebuffer (vk, device, *m_renderPass, *m_colorAttachmentView, m_colorImageExtent.width, m_colorImageExtent.height);
1534 m_pipelineLayout = makePipelineLayout(vk, device, descriptorSetLayout);
1540 .setShader (vk, device, VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get(shaderPrefix + "vert"), DE_NULL)
1541 .setShader (vk, device, VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get(shaderPrefix + "frag"), DE_NULL);
1546 .setShader (vk, device, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, context.getBinaryCollection().get(shaderPrefix + "tesc"), DE_NULL)
1547 .setShader (vk, device, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, context.getBinaryCollection().get(shaderPrefix + "tese"), DE_NULL);
1551 .setShader (vk, device, VK_SHADER_STAGE_GEOMETRY_BIT, context.getBinaryCollection().get(shaderPrefix + "geom"), DE_NULL);
1553 m_pipeline = pipelineBuilder.build(vk, device, *m_pipelineLayout, *m_renderPass, context.getPipelineCacheData(), context.getResourceInterface());
1616 const VkDevice device = context.getDevice();
1621 m_indirectBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator,
1631 flushAlloc(vk, device, alloc);
1634 const Unique<VkShaderModule> shaderModule(createShaderModule(vk, device, context.getBinaryCollection().get(shaderPrefix + "comp"), (VkShaderModuleCreateFlags)0));
1636 m_pipelineLayout = makePipelineLayout(vk, device, descriptorSetLayout);
1637 m_pipeline = makeComputePipeline(vk, device, *m_pipelineLayout, *shaderModule, DE_NULL, context.getPipelineCacheData(), context.getResourceInterface());
1685 const VkDevice device = m_context.getDevice();
1689 vk, device, allocator, makeBufferCreateInfo(m_resource.getBuffer().size, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT), MemoryRequirement::HostVisible));
1698 flushAlloc(vk, device, alloc);
1712 .build(vk, device);
1717 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
1719 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
1730 .update(vk, device);
1734 m_pBufferView = vk::makeBufferView(vk, device, m_resource.getBuffer().handle, VK_FORMAT_R32G32B32A32_UINT, m_resource.getBuffer().offset, m_resource.getBuffer().size);
1739 .update(vk, device);
1749 .update(vk, device);
1897 const VkDevice device = m_context.getDevice();
1909 vk, device, allocator, makeBufferCreateInfo(m_hostBufferSizeBytes, VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT),
1919 flushAlloc(vk, device, alloc);
1924 m_image = de::MovePtr<Image>(new Image(vk, device, allocator,
1943 m_srcImageView = makeImageView(vk, device, *m_srcImage, viewType, m_resource.getImage().format, m_resource.getImage().subresourceRange);
1944 m_dstImageView = makeImageView(vk, device, *m_dstImage, viewType, m_resource.getImage().format, m_resource.getImage().subresourceRange);
1952 .build(vk, device);
1957 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
1959 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
1967 .update(vk, device);
2546 const VkDevice device = m_context.getDevice();
2555 .build(vk, device);
2560 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
2562 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
2570 .update(vk, device);
2742 const VkDevice device = m_context.getDevice();
2756 m_srcImageView = makeImageView(vk, device, m_inResource.getImage().handle, viewType, m_inResource.getImage().format, m_inResource.getImage().subresourceRange);
2757 m_dstImageView = makeImageView(vk, device, m_outResource.getImage().handle, viewType, m_outResource.getImage().format, m_outResource.getImage().subresourceRange);
2765 .build(vk, device);
2770 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
2772 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
2780 .update(vk, device);
2972 const VkDevice device = m_context.getDevice();
2983 m_hostBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator, bufferCreateInfo, MemoryRequirement::HostVisible));
2986 flushAlloc(vk, device, alloc);
2990 m_imageView = makeImageView(vk, device, image.handle, viewType, image.format, image.subresourceRange);
2997 .build(vk, device);
3002 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
3004 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
3012 .update(vk, device);
3016 const Unique<VkShaderModule> shaderModule(createShaderModule(vk, device, context.getBinaryCollection().get("comp"), (VkShaderModuleCreateFlags)0));
3017 m_pipelineLayout = makePipelineLayout (vk, device, *m_descriptorSetLayout);
3018 m_pipeline = makeComputePipeline(vk, device, *m_pipelineLayout, *shaderModule, DE_NULL, context.getPipelineCacheData(), context.getResourceInterface());
3167 const VkDevice device = m_context.getDevice();
3171 vk, device, allocator, makeBufferCreateInfo(m_bufferSize, VK_BUFFER_USAGE_TRANSFER_SRC_BIT), MemoryRequirement::HostVisible));
3175 flushAlloc(vk, device, alloc);
3245 const VkDevice device = m_context.getDevice();
3255 vk, device, allocator,
3263 vk, device, allocator, makeBufferCreateInfo(m_resource.getBuffer().size, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible));
3561 const VkDevice device = m_context.getDevice();
3571 vk, device, allocator, makeBufferCreateInfo(m_resource.getBuffer().size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT), MemoryRequirement::HostVisible));
3575 flushAlloc(vk, device, alloc);
3579 vk, device, allocator,
3674 const VkDevice device = m_context.getDevice();
3678 vk, device, allocator, makeBufferCreateInfo(m_bufferSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible));
3682 flushAlloc(vk, device, alloc);
4050 const VkDevice device = context.getDevice();
4057 m_indirectBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator,
4068 flushAlloc(vk, device, alloc);
4072 m_indirectBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator,
4084 flushAlloc(vk, device, alloc);
4096 m_colorAttachmentView = makeImageView (vk, device, m_colorImage, VK_IMAGE_VIEW_TYPE_2D, m_colorFormat, m_colorSubresourceRange);
4097 m_renderPass = makeRenderPass (vk, device, m_colorFormat);
4098 m_framebuffer = makeFramebuffer (vk, device, *m_renderPass, *m_colorAttachmentView, m_attachmentExtent.width, m_attachmentExtent.height);
4099 m_pipelineLayout = makePipelineLayout(vk, device);
4105 .setShader (vk, device, VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("draw_vert"), DE_NULL)
4106 .setShader (vk, device, VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("draw_frag"), DE_NULL);
4108 m_pipeline = pipelineBuilder.build(vk, device, *m_pipelineLayout, *m_renderPass, context.getPipelineCacheData(), context.getResourceInterface() );
4332 const VkDevice device = context.getDevice();
4344 m_attachmentView = makeImageView(vk, device, m_resource.getImage().handle, getImageViewType(m_resource.getImage().imageType), m_resource.getImage().format, m_resource.getImage().subresourceRange);
4349 m_renderPass = makeRenderPass(vk, device, m_resource.getImage().format, VK_FORMAT_UNDEFINED, VK_ATTACHMENT_LOAD_OP_DONT_CARE, syncInfo.imageLayout);
4353 m_renderPass = makeRenderPass(vk, device, VK_FORMAT_UNDEFINED, m_resource.getImage().format, VK_ATTACHMENT_LOAD_OP_DONT_CARE, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, syncInfo.imageLayout);
4360 m_frameBuffer = makeFramebuffer(vk, device, *m_renderPass, *m_attachmentView, m_resource.getImage().extent.width, m_resource.getImage().extent.height);
4528 const VkDevice device = context.getDevice();
4536 m_colorAttachmentImage = de::MovePtr<Image>(new Image(vk, device, allocator,
4543 m_colorAttachmentView = makeImageView (vk, device, **m_colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, m_colorFormat, m_colorImageSubresourceRange);
4544 m_renderPass = makeRenderPass (vk, device, m_colorFormat);
4545 m_framebuffer = makeFramebuffer (vk, device, *m_renderPass, *m_colorAttachmentView, m_colorImageExtent.width, m_colorImageExtent.height);
4546 m_pipelineLayout = makePipelineLayout(vk, device, descriptorSetLayout);
4552 .setShader (vk, device, VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get(shaderPrefix + "vert"), DE_NULL)
4553 .setShader (vk, device, VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get(shaderPrefix + "frag"), DE_NULL);
4555 m_pipeline = pipelineBuilder.build(vk, device, *m_pipelineLayout, *m_renderPass, context.getPipelineCacheData(), context.getResourceInterface());
4637 const VkDevice device = context.getDevice();
4639 const Unique<VkShaderModule> shaderModule(createShaderModule(vk, device, context.getBinaryCollection().get(shaderPrefix + "comp"), (VkShaderModuleCreateFlags)0));
4641 m_pipelineLayout = makePipelineLayout(vk, device, descriptorSetLayout);
4642 m_pipeline = makeComputePipeline(vk, device, *m_pipelineLayout, *shaderModule, DE_NULL, context.getPipelineCacheData(), context.getResourceInterface());
4674 const VkDevice device = m_context.getDevice();
4678 vk, device, allocator, makeBufferCreateInfo(m_hostBufferSizeBytes, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT), MemoryRequirement::HostVisible));
4684 flushAlloc(vk, device, alloc);
4691 .build(vk, device);
4695 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
4697 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
4703 .update(vk, device);
5037 const VkDevice device = context.getDevice();
5044 m_outputBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator,
5049 flushAlloc(vk, device, alloc);
5057 m_inputBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator,
5062 flushAlloc(vk, device, alloc);
5067 .build (vk, device);
5071 .build (vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
5073 m_descriptorSet = makeDescriptorSet(vk, device, *m_descriptorPool, *m_descriptorSetLayout);
5078 .update (vk, device);
5084 m_colorAttachmentImage = de::MovePtr<Image>(new Image(vk, device, allocator,
5090 m_colorAttachmentView = makeImageView (vk, device, **m_colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, m_colorFormat, m_colorImageSubresourceRange);
5091 m_renderPass = makeRenderPass (vk, device, m_colorFormat);
5092 m_framebuffer = makeFramebuffer (vk, device, *m_renderPass, *m_colorAttachmentView, m_colorImageExtent.width, m_colorImageExtent.height);
5093 m_pipelineLayout = makePipelineLayout(vk, device, *m_descriptorSetLayout);
5099 .setShader (vk, device, VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("input_vert"), DE_NULL)
5100 .setShader (vk, device, VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("input_frag"), DE_NULL)
5101 .build (vk, device, *m_pipelineLayout, *m_renderPass, context.getPipelineCacheData(), context.getResourceInterface());
5337 const VkDevice device,
5345 , m_device (device)
5357 vk::VkDevice device,
5366 , m_device (device)
5378 const VkDevice device = context.getDevice();
5392 m_buffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator, bufferCreateInfo, MemoryRequirement::Any));
5423 m_image = de::MovePtr<Image>(new Image(vk, device, allocator, imageInfo, MemoryRequirement::Any));