MayaFlux 1.0.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 192 of file ShaderUtils.hpp.

193{
194 switch (role) {
195 case DescriptorRole::UNIFORM:
196 return vk::DescriptorType::eUniformBuffer;
197 case DescriptorRole::STORAGE:
198 return vk::DescriptorType::eStorageBuffer;
199 case DescriptorRole::TEXTURE:
200 return vk::DescriptorType::eCombinedImageSampler;
201 case DescriptorRole::STORAGE_IMAGE:
202 return vk::DescriptorType::eStorageImage;
203 }
204 return vk::DescriptorType::eStorageBuffer;
205}

References STORAGE, STORAGE_IMAGE, TEXTURE, and UNIFORM.