Class VkPipelineRasterizationStateCreateInfo

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

    public class VkPipelineRasterizationStateCreateInfo
    extends Struct
    implements NativeResource
    Structure specifying parameters of a newly created pipeline rasterization state.

    The application can also add a VkPipelineRasterizationStateRasterizationOrderAMD structure to the pNext chain of a VkPipelineRasterizationStateCreateInfo structure. This structure enables selecting the rasterization order to use when rendering with the corresponding graphics pipeline as described in Rasterization Order.

    Valid Usage
    Valid Usage (Implicit)
    See Also


    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • 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, as described in Primitive Clipping.
    • rasterizerDiscardEnable – controls whether primitives are discarded immediately before the rasterization stage.
    • polygonMode – the triangle rendering mode. See VkPolygonMode.
    • cullMode – the triangle facing direction used for primitive culling. See VkCullModeFlagBits.
    • frontFace – a VkFrontFace value specifying the front-facing triangle orientation to be used for culling.
    • 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.


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