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

Method register_shader_module

framework/resource_record.cpp:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58size_t ResourceRecord::register_shader_module(VkShaderStageFlagBits stage, const ShaderSource &glsl_source, const std::string &entry_point, const ShaderVariant &shader_variant)
59{
60 shader_module_indices.push_back(shader_module_indices.size());
61
62 write(stream, ResourceType::ShaderModule, stage, glsl_source.get_source(), entry_point);
63
64 return shader_module_indices.back();
65}
66
67size_t ResourceRecord::register_pipeline_layout(const std::vector<ShaderModule *> &shader_modules)
68{

Callers 2

recordMethod · 0.45
recordMethod · 0.45

Calls 3

writeFunction · 0.85
sizeMethod · 0.80
get_sourceMethod · 0.80

Tested by

no test coverage detected