Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71751d8

Browse files
committed
Fix integer being passed to pPushConstantRanges instead of pointer
1 parent 71a5054 commit 71751d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

03_Drawing_a_triangle/02_Graphics_pipeline_basics/02_Fixed_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pipelineLayoutInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;
376376
pipelineLayoutInfo.setLayoutCount = 0; // Optional
377377
pipelineLayoutInfo.pSetLayouts = nullptr; // Optional
378378
pipelineLayoutInfo.pushConstantRangeCount = 0; // Optional
379-
pipelineLayoutInfo.pPushConstantRanges = 0; // Optional
379+
pipelineLayoutInfo.pPushConstantRanges = nullptr; // Optional
380380

381381
if (vkCreatePipelineLayout(device, &pipelineLayoutInfo, nullptr, &pipelineLayout) != VK_SUCCESS) {
382382
throw std::runtime_error("failed to create pipeline layout!");

0 commit comments

Comments
 (0)