Skip to content

FiniteRenderRasterState

The FiniteRenderRasterState struct contains important information for creating rasterization information.

struct FiniteRenderRasterState {
const void* next;
VkPipelineRasterizationStateCreateFlags flags;
bool depthClampEnable;
bool rasterizerDiscardEnable;
VkPolygonMode polygonMode;
VkCullModeFlags cullMode;
VkFrontFace frontFace;
bool depthBiasEnable;
float depthBiasConstantFactor;
float depthBiasClamp;
float depthBiasSlopeFactor;
float lineWidth;
};
TypeDescription
const void *nextExtension pointer for Vulkan or NULL
VkPipelineRasterizationStateCreateFlags flagsVulkan rasterization flags
bool depthClampEnableEnable depth clamping
bool rasterizerDiscardEnableDiscard all primitives before rasterization
VkPolygonMode polygonModePolygon mode (VK_POLYGON_MODE_FILL, etc.)
VkCullModeFlags cullModeCulling mode (VK_CULL_MODE_BACK_BIT, etc.)
VkFrontFace frontFaceFront-facing winding (VK_FRONT_FACE_CLOCKWISE, etc.)
bool depthBiasEnableEnable depth bias
float depthBiasConstantFactorConstant depth bias factor
float depthBiasClampMaximum depth bias
float depthBiasSlopeFactorSlope depth bias factor
float lineWidthWidth of lines

This struct should be created manually and used as a param to finite_render_create_raster_info