MCPcopy Create free account
hub / github.com/comaps/comaps / Get

Method Get

libs/shaders/vulkan_program_pool.cpp:274–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274drape_ptr<dp::GpuProgram> VulkanProgramPool::Get(Program program)
275{
276 auto const & d = m_programData[static_cast<size_t>(program)];
277
278 VkPipelineShaderStageCreateInfo vsStage = {};
279 vsStage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
280 vsStage.stage = VK_SHADER_STAGE_VERTEX_BIT;
281 vsStage.module = d.m_vertexShader;
282 vsStage.pName = "main";
283
284 VkPipelineShaderStageCreateInfo fsStage = {};
285 fsStage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
286 fsStage.stage = VK_SHADER_STAGE_FRAGMENT_BIT;
287 fsStage.module = d.m_fragmentShader;
288 fsStage.pName = "main";
289
290 return make_unique_dp<dp::vulkan::VulkanGpuProgram>(DebugPrint(program), vsStage, fsStage, d.m_descriptorSetLayout,
291 d.m_pipelineLayout, d.m_textureBindings);
292}
293
294uint32_t VulkanProgramPool::GetMaxUniformBuffers() const
295{

Callers

nothing calls this directly

Calls 1

DebugPrintFunction · 0.70

Tested by

no test coverage detected