Class VkPipelineViewportStateCreateInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineViewportStateCreateInfo>
org.lwjgl.vulkan.VkPipelineViewportStateCreateInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkPipelineViewportStateCreateInfo extends org.lwjgl.system.Struct<VkPipelineViewportStateCreateInfo> implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created pipeline viewport state.
Valid Usage
  • If the multiViewport feature is not enabled, viewportCount must not be greater than 1
  • If the multiViewport feature is not enabled, scissorCount must not be greater than 1
  • viewportCount must be less than or equal to VkPhysicalDeviceLimits::maxViewports
  • scissorCount must be less than or equal to VkPhysicalDeviceLimits::maxViewports
  • The x and y members of offset member of any element of pScissors must be greater than or equal to 0
  • Evaluation of (offset.x + extent.width) must not cause a signed integer addition overflow for any element of pScissors
  • Evaluation of (offset.y + extent.height) must not cause a signed integer addition overflow for any element of pScissors
  • If scissorCount and viewportCount are both not dynamic, then scissorCount and viewportCount must be identical
  • If the graphics pipeline is being created with DYNAMIC_STATE_VIEWPORT_WITH_COUNT set then viewportCount must be 0, otherwise viewportCount must be greater than 0
  • If the graphics pipeline is being created with DYNAMIC_STATE_SCISSOR_WITH_COUNT set then scissorCount must be 0, otherwise scissorCount must be greater than 0
  • If the viewportWScalingEnable member of a VkPipelineViewportWScalingStateCreateInfoNV structure included in the pNext chain is TRUE, the viewportCount member of the VkPipelineViewportWScalingStateCreateInfoNV structure must be greater than or equal to VkPipelineViewportStateCreateInfo::viewportCount
Valid Usage (Implicit)
See Also

VkGraphicsPipelineCreateInfo, VkRect2D, VkViewport

Layout


 struct VkPipelineViewportStateCreateInfo {
     VkStructureType sType();
     void const * pNext();
     VkPipelineViewportStateCreateFlags flags();
     uint32_t viewportCount();
     VkViewport const * pViewports();
     uint32_t scissorCount();
     VkRect2D const * pScissors();
 }