MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / toVkDescriptorType

Function toVkDescriptorType

RenderSystems/Vulkan/src/OgreVulkanRootLayout.cpp:62–79  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

60 static const char c_HLSLBufferTypesMap[] = "ccuttsuu";
61 //-------------------------------------------------------------------------
62 uint32 toVkDescriptorType( DescBindingTypes::DescBindingTypes type )
63 {
64 switch( type )
65 {
66 // clang-format off
67 case DescBindingTypes::ParamBuffer: return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
68 case DescBindingTypes::ConstBuffer: return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
69 case DescBindingTypes::ReadOnlyBuffer: return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
70 case DescBindingTypes::TexBuffer: return VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER;
71 case DescBindingTypes::Texture: return VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE;
72 case DescBindingTypes::Sampler: return VK_DESCRIPTOR_TYPE_SAMPLER;
73 case DescBindingTypes::UavTexture: return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE;
74 case DescBindingTypes::UavBuffer: return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
75 case DescBindingTypes::NumDescBindingTypes: return VK_DESCRIPTOR_TYPE_MAX_ENUM;
76 // clang-format on
77 }
78 return VK_DESCRIPTOR_TYPE_MAX_ENUM;
79 }
80 //-------------------------------------------------------------------------
81 VulkanRootLayout::VulkanRootLayout( VulkanGpuProgramManager *programManager ) :
82 mRootLayout( 0 ),

Callers 2

createVulkanHandlesMethod · 0.85
VulkanDescriptorPoolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected