Home | History | Annotate | Download | only in demos

Lines Matching defs:writes

552         /* Make sure any Copy or CPU writes to image are flushed */
1665 VkWriteDescriptorSet writes[2];
1685 memset(&writes, 0, sizeof(writes));
1687 writes[0].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;
1688 writes[0].dstSet = demo->desc_set;
1689 writes[0].descriptorCount = 1;
1690 writes[0].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
1691 writes[0].pBufferInfo = &demo->uniform_data.buffer_info;
1693 writes[1].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;
1694 writes[1].dstSet = demo->desc_set;
1695 writes[1].dstBinding = 1;
1696 writes[1].descriptorCount = DEMO_TEXTURE_COUNT;
1697 writes[1].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
1698 writes[1].pImageInfo = tex_descs;
1700 vkUpdateDescriptorSets(demo->device, 2, writes, 0, NULL);