MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / getDescriptorType

Function getDescriptorType

source/RenderGraph/RunnableGraph.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 static VkDescriptorType getDescriptorType( BufferAttachment const & attach )
137 {
138 if ( attach.isUniformView() )
139 return VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER;
140 if ( attach.isStorageView() )
141 return VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER;
142 if ( attach.isUniform() )
143 return VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
144 return VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
145 }
146
147 static VkDescriptorType getDescriptorType( ImageAttachment const & attach )
148 {

Callers 2

getWriteFunction · 0.85
getDescriptorTypeMethod · 0.85

Calls 3

isUniformViewMethod · 0.80
isUniformMethod · 0.80
isStorageViewMethod · 0.45

Tested by

no test coverage detected