Closed ChetanGandhi closed 5 years ago
Did you set pDynamicState
to something other than nullptr
? Because if you did and you set the viewport to be dynamic, then you must have a call to vkCmdSetViewport
.
Yes, you are correct. I am setting following values
VkDynamicState dynamicStates[] = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_LINE_WIDTH };
This code is from Fixed functions chapter but we are not using vkCmdSetViewport
anywhere.
Are we missing the call to this API ?
No, you're just not supposed to use dynamic states in this tutorial. It is meant as an example for further exploration.
Ok. Thanks for clarifying this. I will remove the related code :)
Hi,
I am getting this error
Dynamic viewport(s) 0 are used by pipeline state object, but were not provided via calls to vkCmdSetViewport
I am not sure why the validation layer started reporting this, but might be due to the new driver and Vulkan SDK.
Can you please provide more details on this API and where and how to use it.
My system configuration: Graphics card: Nvidia GeForce 930M Driver version: 431.60 CPU: Intel i5-6200U Vulkan SDK: 1.1.114.0
Thanks a lot for your wonderful tutorial :)