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

Method create_pipeline_layout

framework/resource_replay.cpp:102–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void ResourceReplay::create_pipeline_layout(ResourceCache &resource_cache, std::istringstream &stream)
103{
104 std::vector<size_t> shader_indices;
105
106 read(stream,
107 shader_indices);
108
109 std::vector<ShaderModule *> shader_stages(shader_indices.size());
110 std::transform(shader_indices.begin(),
111 shader_indices.end(),
112 shader_stages.begin(),
113 [&](size_t shader_index) {
114 assert(shader_index < shader_modules.size());
115 return shader_modules[shader_index];
116 });
117
118 auto &pipeline_layout = resource_cache.request_pipeline_layout(shader_stages);
119
120 pipeline_layouts.push_back(&pipeline_layout);
121}
122
123void ResourceReplay::create_render_pass(ResourceCache &resource_cache, std::istringstream &stream)
124{

Callers

nothing calls this directly

Calls 4

readFunction · 0.85
sizeMethod · 0.80
endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected