wisdom
Loading...
Searching...
No Matches
wis::RasterizerDesc Struct Reference

Detailed Description

Rasterizer description for .

bool depth_bias_enable = false;
float depth_bias = 0.0f;
float depth_bias_clamp = 0.0f;
float depth_bias_slope_factor = 0.0f;
bool depth_clip_enable = true;
};
CullMode
Cull mode for rasterizer. Triangle culling depends on wis::WindingOrder option.
Definition api.hpp:292
@ Back
Cull back-facing triangles.
FillMode
Fill mode for rasterizer.
Definition api.hpp:820
@ Solid
Fill the area between vertices forming polygons.
WindingOrder
Winding order for front-facing triangles.
Definition api.hpp:850
@ Clockwise
Front-facing triangles have clockwise winding order.
Rasterizer description for .
Definition api.hpp:1649

Definition at line 1649 of file api.hpp.

#include <api.hpp>

Public Attributes

wis::FillMode fill_mode = wis::FillMode::Solid
 Fill mode. Solid or Wireframe. Default is wis::FillMode::Solid.
 
wis::CullMode cull_mode = wis::CullMode::Back
 Cull mode. None, Front, Back. Default is wis::CullMode::Back.
 
wis::WindingOrder front_face = wis::WindingOrder::Clockwise
 Front face winding order. Clockwise or CounterClockwise. Default is wis::WindingOrder::Clockwise.
 
bool depth_bias_enable = false
 Depth bias enable. Default is false.
 
float depth_bias = 0.0f
 Depth bias. Default is 0.0f.
 
float depth_bias_clamp = 0.0f
 Depth bias clamp. Default is 0.0f.
 
float depth_bias_slope_factor = 0.0f
 Depth bias slope factor e.g. for shadows. Default is 0.0f.
 
bool depth_clip_enable = true
 Depth clip enable. Default is true.
 

Data Members

◆ cull_mode

wis::CullMode wis::RasterizerDesc::cull_mode = wis::CullMode::Back

Cull mode. None, Front, Back. Default is wis::CullMode::Back.

Definition at line 1651 of file api.hpp.

◆ depth_bias

float wis::RasterizerDesc::depth_bias = 0.0f

Depth bias. Default is 0.0f.

Definition at line 1654 of file api.hpp.

◆ depth_bias_clamp

float wis::RasterizerDesc::depth_bias_clamp = 0.0f

Depth bias clamp. Default is 0.0f.

Definition at line 1655 of file api.hpp.

◆ depth_bias_enable

bool wis::RasterizerDesc::depth_bias_enable = false

Depth bias enable. Default is false.

Definition at line 1653 of file api.hpp.

◆ depth_bias_slope_factor

float wis::RasterizerDesc::depth_bias_slope_factor = 0.0f

Depth bias slope factor e.g. for shadows. Default is 0.0f.

Definition at line 1656 of file api.hpp.

◆ depth_clip_enable

bool wis::RasterizerDesc::depth_clip_enable = true

Depth clip enable. Default is true.

Definition at line 1657 of file api.hpp.

◆ fill_mode

wis::FillMode wis::RasterizerDesc::fill_mode = wis::FillMode::Solid

Fill mode. Solid or Wireframe. Default is wis::FillMode::Solid.

Definition at line 1650 of file api.hpp.

◆ front_face

wis::WindingOrder wis::RasterizerDesc::front_face = wis::WindingOrder::Clockwise

Front face winding order. Clockwise or CounterClockwise. Default is wis::WindingOrder::Clockwise.

Definition at line 1652 of file api.hpp.


The documentation for this struct was generated from the following file: