1// WARNING: DO NOT MODIFY! This file is automatically generated from the vk.xml registry 2.Valid Usage (Implicit) 3**** 4* [[VUID-vkCmdSetViewport-commandBuffer-parameter]] pname:commandBuffer must: be a valid sname:VkCommandBuffer handle 5* [[VUID-vkCmdSetViewport-pViewports-parameter]] pname:pViewports must: be a valid pointer to an array of pname:viewportCount valid sname:VkViewport structures 6* [[VUID-vkCmdSetViewport-commandBuffer-recording]] pname:commandBuffer must: be in the <<commandbuffers-lifecycle, recording state>> 7* [[VUID-vkCmdSetViewport-commandBuffer-cmdpool]] The sname:VkCommandPool that pname:commandBuffer was allocated from must: support graphics operations 8* [[VUID-vkCmdSetViewport-viewportCount-arraylength]] pname:viewportCount must: be greater than `0` 9**** 10 11.Host Synchronization 12**** 13* Host access to pname:commandBuffer must: be externally synchronized 14* Host access to the sname:VkCommandPool that pname:commandBuffer was allocated from must: be externally synchronized 15**** 16 17.Command Properties 18**** 19[options="header", width="100%"] 20|==== 21|<<VkCommandBufferLevel,Command Buffer Levels>>|<<vkCmdBeginRenderPass,Render Pass Scope>>|<<VkQueueFlagBits,Supported Queue Types>>|<<synchronization-pipeline-stages-types,Pipeline Type>> 22|Primary + 23Secondary|Both|Graphics| 24|==== 25**** 26 27