MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / get_resources

Method get_resources

framework/core/pipeline_layout.cpp:155–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155const std::vector<ShaderResource> PipelineLayout::get_resources(const ShaderResourceType &type, VkShaderStageFlagBits stage) const
156{
157 std::vector<ShaderResource> found_resources;
158
159 for (auto &it : shader_resources)
160 {
161 auto &shader_resource = it.second;
162
163 if (shader_resource.type == type || type == ShaderResourceType::All)
164 {
165 if (shader_resource.stages == stage || stage == VK_SHADER_STAGE_ALL)
166 {
167 found_resources.push_back(shader_resource);
168 }
169 }
170 }
171
172 return found_resources;
173}
174
175const std::unordered_map<uint32_t, std::vector<ShaderResource>> &PipelineLayout::get_shader_sets() const
176{

Callers 5

PipelineLayoutMethod · 0.45
transition_imagesMethod · 0.45
draw_submesh_implMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected