| 65 | } |
| 66 | |
| 67 | size_t ResourceRecord::register_pipeline_layout(const std::vector<ShaderModule *> &shader_modules) |
| 68 | { |
| 69 | pipeline_layout_indices.push_back(pipeline_layout_indices.size()); |
| 70 | |
| 71 | std::vector<size_t> shader_indices(shader_modules.size()); |
| 72 | std::transform(shader_modules.begin(), shader_modules.end(), shader_indices.begin(), |
| 73 | [this](ShaderModule *shader_module) { return shader_module_to_index.at(shader_module); }); |
| 74 | |
| 75 | write(stream, |
| 76 | ResourceType::PipelineLayout, |
| 77 | shader_indices); |
| 78 | |
| 79 | return pipeline_layout_indices.back(); |
| 80 | } |
| 81 | |
| 82 | size_t ResourceRecord::register_render_pass(const std::vector<vkb::rendering::AttachmentC> &attachments, const std::vector<LoadStoreInfo> &load_store_infos, const std::vector<SubpassInfo> &subpasses) |
| 83 | { |