pub struct SoftwareRasterizer {Show 14 fields
pub color_buffer: Vec<u32>,
pub depth_buffer: Vec<i32>,
pub width: u32,
pub height: u32,
pub viewport: Viewport,
pub scissor: Option<ScissorRect>,
pub depth_func: DepthFunc,
pub depth_write: bool,
pub depth_test: bool,
pub blend_mode: BlendMode,
pub texture: Option<SoftTexture>,
pub shader: ShaderState,
pub clear_color: u32,
pub clear_depth: i32,
}Expand description
Software rasterizer state
Fields§
§color_buffer: Vec<u32>Output color buffer (ARGB8888)
depth_buffer: Vec<i32>Depth buffer (16.16 FP Z values)
width: u32Width in pixels
height: u32Height in pixels
viewport: ViewportViewport
scissor: Option<ScissorRect>Scissor rectangle (None = disabled)
depth_func: DepthFuncDepth test function
depth_write: boolDepth write enabled
depth_test: boolDepth test enabled
blend_mode: BlendModeBlend mode
texture: Option<SoftTexture>Bound texture (index 0)
shader: ShaderStateShader state
clear_color: u32Clear color (ARGB8888)
clear_depth: i32Clear depth (16.16 FP)