Luna::RHI::RasterizerDesc

Describes rasterizer configurations for one graphics pipeline.

struct Luna::RHI::RasterizerDesc

Member objects

  • i32 depth_bias

    The constant depth bias value added to the depth value generated by the vertex shader in depth bias step.

  • f32 slope_scaled_depth_bias

    The slope-scaled depth bias value added to the depth value generated by the vertex shader in depth bias step.

  • f32 depth_bias_clamp

    The bias value range ([-depth_bias_clamp, depth_bias_clamp]) allowed to be added to the depth value generated by the vertex shader in depth bias step.

  • FillMode fill_mode

    The fill mode of the rasterizer.

  • CullMode cull_mode

    The cull mode of the rasterizer.

  • bool front_counter_clockwise

    If this is true, triangles will be regarded as front-facing if its three vertices are wound counter-clockwisly from view of camera.

  • bool depth_clip_enable

    Whether to discard fragments outside of the allowed depth range (0~1). If this is false, outside fragments will have their depth values clamped to [0, 1].