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

Method register_pipeline_layout

framework/resource_record.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67size_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
82size_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{

Callers 2

recordMethod · 0.45
recordMethod · 0.45

Calls 4

writeFunction · 0.85
sizeMethod · 0.80
endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected