MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ sampler()

DescriptorUpdateBatch & MayaFlux::Core::DescriptorUpdateBatch::sampler ( uint32_t  binding,
vk::Sampler  sampler 
)

Definition at line 718 of file VKDescriptorManager.cpp.

721{
722 vk::DescriptorImageInfo image_info;
723 image_info.sampler = sampler;
724 image_info.imageView = nullptr;
725 image_info.imageLayout = vk::ImageLayout::eUndefined;
726 m_image_infos.push_back(image_info);
727
728 vk::WriteDescriptorSet write;
729 write.dstSet = m_set;
730 write.dstBinding = binding;
731 write.dstArrayElement = 0;
732 write.descriptorCount = 1;
733 write.descriptorType = vk::DescriptorType::eSampler;
734 write.pImageInfo = &m_image_infos.back();
735 m_writes.push_back(write);
736
737 return *this;
738}
DescriptorUpdateBatch & sampler(uint32_t binding, vk::Sampler sampler)
std::vector< vk::WriteDescriptorSet > m_writes
std::vector< vk::DescriptorImageInfo > m_image_infos

References m_image_infos, m_set, m_writes, and sampler().

Referenced by combined_image_sampler(), sampler(), and storage_image().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: