Initial pipeline abstraction

This commit is contained in:
Werner
2021-11-23 20:09:05 -03:00
parent b23bc27f55
commit f45d465c3f
23 changed files with 943 additions and 58 deletions

View File

@ -0,0 +1,17 @@
use crate::Shader::Shader;
use std::borrow::Cow;
#[derive(Clone, Debug)]
pub struct FragmentState {
/// The compiled shader module for this stage.
pub shader: Cow<'static, Shader>,
/// The name of the entry point in the compiled shader. There must be a function that returns
/// void with this name in the shader.
pub entry_point: Cow<'static, str>,
/*
/// The color state of the render targets.
pub targets: &'a [ColorTargetState],
*/
}