diff --git a/src/device/dynamic_state.rs b/src/device/dynamic_state.rs new file mode 100644 index 00000000..c22f017b --- /dev/null +++ b/src/device/dynamic_state.rs @@ -0,0 +1,6 @@ +use dynamic_state; + + +pub struct DynamicStateObjects { + +} diff --git a/src/dynamic_state.rs b/src/dynamic_state.rs new file mode 100644 index 00000000..5bde3cb9 --- /dev/null +++ b/src/dynamic_state.rs @@ -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, +} +