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

◆ to_vk_descriptor_type()

vk::DescriptorType MayaFlux::Portal::Graphics::to_vk_descriptor_type ( DescriptorRole  role)
inline

Convert DescriptorRole to the corresponding vk::DescriptorType.

Definition at line 176 of file ShaderUtils.hpp.

177{
178 switch (role) {
179 case DescriptorRole::UNIFORM:
180 return vk::DescriptorType::eUniformBuffer;
181 case DescriptorRole::STORAGE:
182 return vk::DescriptorType::eStorageBuffer;
183 case DescriptorRole::TEXTURE:
184 return vk::DescriptorType::eCombinedImageSampler;
185 case DescriptorRole::STORAGE_IMAGE:
186 return vk::DescriptorType::eStorageImage;
187 }
188 return vk::DescriptorType::eStorageBuffer;
189}

References STORAGE, STORAGE_IMAGE, TEXTURE, and UNIFORM.