Class VkPipelineRasterizationStateCreateInfo

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


    public class VkPipelineRasterizationStateCreateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains information about rasterization as part of graphics pipeline creation.

    Valid Usage
    • sType must be STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO
    • pNext must be NULL
    • flags must be 0
    • polygonMode must be a valid VkPolygonMode value
    • cullMode must be a valid combination of VkCullModeFlagBits values
    • frontFace must be a valid VkFrontFace value
    • If the depth clamping feature is not enabled, depthClampEnable must be FALSE
    • If the non-solid fill modes feature is not enabled, polygonMode must be POLYGON_MODE_FILL

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO
    • pNext – reserved for use by extensions
    • flags – reserved for future use
    • depthClampEnable – controls whether to clamp the fragment’s depth values instead of clipping primitives to the z planes of the frustum
    • rasterizerDiscardEnable – controls whether primitives are discarded immediately before the rasterization stage
    • polygonMode – the triangle rendering mode. One of:
      POLYGON_MODE_FILLPOLYGON_MODE_LINEPOLYGON_MODE_POINT
    • cullMode – the triangle facing direction used for primitive culling. One of:
      CULL_MODE_BACK_BITCULL_MODE_FRONT_AND_BACKCULL_MODE_FRONT_BITCULL_MODE_NONE
    • frontFace – the front-facing triangle orientation to be used for culling. One of:
      FRONT_FACE_CLOCKWISEFRONT_FACE_COUNTER_CLOCKWISE
    • depthBiasEnable – controls whether to bias fragment depth values
    • depthBiasConstantFactor – a scalar factor controlling the constant depth value added to each fragment
    • depthBiasClamp – the maximum (or minimum) depth bias of a fragment
    • depthBiasSlopeFactor – a scalar factor applied to a fragment’s slope in depth bias calculations
    • lineWidth – the width of rasterized line segments

    Layout

    struct VkPipelineRasterizationStateCreateInfo {
        VkStructureType sType;
        const void * pNext;
        VkPipelineRasterizationStateCreateFlags flags;
        VkBool32 depthClampEnable;
        VkBool32 rasterizerDiscardEnable;
        VkPolygonMode polygonMode;
        VkCullModeFlags cullMode;
        VkFrontFace frontFace;
        VkBool32 depthBiasEnable;
        float depthBiasConstantFactor;
        float depthBiasClamp;
        float depthBiasSlopeFactor;
        float lineWidth;
    }