Class VkPipelineViewportStateCreateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class VkPipelineViewportStateCreateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains information about viewports as part of graphics pipeline creation.

    Valid Usage
    • sType must be STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO
    • pNext must be NULL
    • flags must be 0
    • viewportCount must be greater than 0
    • scissorCount must be greater than 0
    • If the multiple viewports feature is not enabled, viewportCount must be 1
    • If the multiple viewports feature is not enabled, scissorCount must be 1
    • viewportCount must be between 1 and VkPhysicalDeviceLimits::maxViewports, inclusive
    • scissorCount must be between 1 and VkPhysicalDeviceLimits::maxViewports, inclusive
    • scissorCount and viewportCount must be identical

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO
    • pNext – reserved for use by extensions
    • flags – reserved for future use
    • viewportCount – the number of viewports used by the pipeline
    • pViewports – a pointer to an array of VkViewport structs, defining the viewport transforms. If the viewport state is dynamic, this member is ignored.
    • scissorCount – the number of scissors and must match the number of viewports
    • pScissors – a pointer to an array of VkRect2D structs which define the rectangular bounds of the scissor for the corresponding viewport. If the scissor state is dynamic, this member is ignored.

    Layout

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