| 153 | } |
| 154 | |
| 155 | const 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 | |
| 175 | const std::unordered_map<uint32_t, std::vector<ShaderResource>> &PipelineLayout::get_shader_sets() const |
| 176 | { |
no outgoing calls
no test coverage detected