mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-16 05:44:21 +00:00
18 lines
477 B
Rust
18 lines
477 B
Rust
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],
|
|
*/
|
|
}
|