pub struct StepBinding {
pub draw: String,
pub pass: Option<String>,
pub program: StepProgram,
}Expand description
One draw of the frame’s scene steps that draws a material, and the program it draws it through.
Fields§
§draw: StringThe draw, as the scene steps name it (crate::render_graph::PassWork::Scene::draw).
pass: Option<String>The source’s name for the material’s pass the draw goes through (Unity’s LightMode tag of the subshader’s
pass, DepthNormalsOnly), where the source names its passes.
program: StepProgramImplementations§
Source§impl StepBinding
impl StepBinding
Sourcepub fn binding<'a>(
&'a self,
material: Entity,
w: &'a World,
) -> Option<&'a ShaderBinding>
pub fn binding<'a>( &'a self, material: Entity, w: &'a World, ) -> Option<&'a ShaderBinding>
The binding the draw draws the material through, where the source bound one: the material’s own
core.shader_binding for StepProgram::Main.
Trait Implementations§
Source§impl Clone for StepBinding
impl Clone for StepBinding
Source§impl Debug for StepBinding
impl Debug for StepBinding
Source§impl PartialEq for StepBinding
impl PartialEq for StepBinding
Source§impl Serialize for StepBinding
impl Serialize for StepBinding
impl StructuralPartialEq for StepBinding
Auto Trait Implementations§
impl Forget for StepBinding
impl Freeze for StepBinding
impl RefUnwindSafe for StepBinding
impl Send for StepBinding
impl Sync for StepBinding
impl Unpin for StepBinding
impl UnsafeUnpin for StepBinding
impl UnwindSafe for StepBinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more