namespace Brutal.VulkanApi { /// /// VkPipelineRasterizationStateCreateInfo - Structure specifying parameters of a newly created pipeline rasterization state /// /// /// /// The VkPipelineRasterizationStateCreateInfo structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef 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; /// } VkPipelineRasterizationStateCreateInfo; /// /// [StructLayout(LayoutKind.Explicit, Size = 64)] public unsafe partial struct VkPipelineRasterizationStateCreateInfo() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.PipelineRasterizationStateCreateInfo; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is reserved for future use. /// [FieldOffset(16)] public VkPipelineRasterizationStateCreateFlags Flags; /// /// DepthClampEnable controls whether to clamp the fragment's depth values as described in Depth Test^. Enabling depth clamp will also disable clipping primitives to the z planes of the frustum as described in Primitive Clipping^. /// [FieldOffset(20)] public Brutal.Bool32 DepthClampEnable; /// /// RasterizerDiscardEnable controls whether primitives are discarded immediately before the rasterization stage. /// [FieldOffset(24)] public Brutal.Bool32 RasterizerDiscardEnable; /// /// PolygonMode is the triangle rendering mode. See VkPolygonMode. /// [FieldOffset(28)] public VkPolygonMode PolygonMode; /// /// CullMode is the triangle facing direction used for primitive culling. See VkCullModeFlags. /// [FieldOffset(32)] public VkCullModeFlags CullMode; /// /// FrontFace is a VkFrontFace value specifying the front-facing triangle orientation to be used for culling. /// [FieldOffset(36)] public VkFrontFace FrontFace; /// /// DepthBiasEnable controls whether to bias fragment depth values. /// [FieldOffset(40)] public Brutal.Bool32 DepthBiasEnable; /// /// DepthBiasConstantFactor is a scalar factor controlling the constant depth value added to each fragment. /// [FieldOffset(44)] public float DepthBiasConstantFactor; /// /// DepthBiasClamp is the maximum (or minimum) depth bias of a fragment. /// [FieldOffset(48)] public float DepthBiasClamp; /// /// DepthBiasSlopeFactor is a scalar factor applied to a fragment's slope in depth bias calculations. /// [FieldOffset(52)] public float DepthBiasSlopeFactor; /// /// LineWidth is the width of rasterized line segments. /// [FieldOffset(56)] public float LineWidth; } }