MayaFlux 0.3.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 93 of file ShaderUtils.hpp.

94{
95 switch (role) {
96 case DescriptorRole::UNIFORM:
97 return vk::DescriptorType::eUniformBuffer;
98 case DescriptorRole::STORAGE:
99 return vk::DescriptorType::eStorageBuffer;
100 case DescriptorRole::TEXTURE:
101 return vk::DescriptorType::eCombinedImageSampler;
102 case DescriptorRole::STORAGE_IMAGE:
103 return vk::DescriptorType::eStorageImage;
104 }
105 return vk::DescriptorType::eStorageBuffer;
106}

References STORAGE, STORAGE_IMAGE, TEXTURE, and UNIFORM.