Minor work

This commit is contained in:
Pierre Krieger 2015-07-08 20:56:33 +02:00
parent 140d25ab97
commit 18020a6d88
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,6 @@
use dynamic_state;
pub struct DynamicStateObjects {
}

24
src/dynamic_state.rs Normal file
View File

@ -0,0 +1,24 @@
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq)]
pub enum FillMode {
Solid,
Wireframe,
}
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq)]
pub enum CullMode {
None,
Front,
Back,
}
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq)]
pub struct RasterizerState {
pub fill_mode: FillMode,
pub cull_mode: CullMode,
pub front_face: TODO,
pub depth_bias: i32,
pub depth_bias_clamp: f32,
pub slope_scaled_depth_bias: f32,
}