MCPcopy Create free account
hub / github.com/SFML/SFML / setupPipelineLayout

Method setupPipelineLayout

examples/vulkan/Vulkan.cpp:1078–1091  ·  view source on GitHub ↗

Set up pipeline layout

Source from the content-addressed store, hash-verified

1076
1077 // Set up pipeline layout
1078 void setupPipelineLayout()
1079 {
1080 VkPipelineLayoutCreateInfo pipelineLayoutCreateInfo = VkPipelineLayoutCreateInfo();
1081 pipelineLayoutCreateInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;
1082 pipelineLayoutCreateInfo.setLayoutCount = 1;
1083 pipelineLayoutCreateInfo.pSetLayouts = &descriptorSetLayout;
1084
1085 // Create pipeline layout
1086 if (vkCreatePipelineLayout(device, &pipelineLayoutCreateInfo, nullptr, &pipelineLayout) != VK_SUCCESS)
1087 {
1088 vulkanAvailable = false;
1089 return;
1090 }
1091 }
1092
1093 // Set up rendering pipeline
1094 void setupPipeline()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected