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

Skip to content

Commit a7e4efd

Browse files
committed
Fix missing sType in VkPipelineDynamicStateCreateInfo snippet
1 parent ef88945 commit a7e4efd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

03_Drawing_a_triangle/02_Graphics_pipeline_basics/02_Fixed_functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ VkDynamicState dynamicStates[] = {
339339
};
340340

341341
VkPipelineDynamicStateCreateInfo dynamicState = {};
342+
dynamicState.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
342343
dynamicState.dynamicStateCount = 2;
343344
dynamicState.pDynamicStates = dynamicStates;
344345
```

0 commit comments

Comments
 (0)