pub struct ShaderPass {
pub kind: PassKind,
pub light_mode: Option<String>,
pub src_blend: ShaderValue,
pub dst_blend: ShaderValue,
pub zwrite: ShaderValue,
pub cull: ShaderValue,
pub state: PassState,
}Expand description
A shader pass’s kind and render state: its LightMode tag as stored (Unity upper-cases some: FORWARDBASE), the
first render target’s blend factors (Unity’s BlendMode, blend_mode: 0 Zero, 1 One, 5 SrcAlpha, 10 OneMinusSrcAlpha, …),
depth writes and culling (0 off, 1 front, 2 back).
Fields§
§kind: PassKindWhat the pass is.
light_mode: Option<String>The pass’s LightMode tag as stored; None when it has none.
src_blend: ShaderValuesrcBlend of the first render target.
dst_blend: ShaderValuedestBlend of the first render target.
zwrite: ShaderValuezWrite: whether the pass writes depth.
cull: ShaderValueculling: which faces are culled.
state: PassStateThe rest of the pass’s render state.
Trait Implementations§
Source§impl Clone for ShaderPass
impl Clone for ShaderPass
Source§impl Debug for ShaderPass
impl Debug for ShaderPass
Source§impl PartialEq for ShaderPass
impl PartialEq for ShaderPass
Source§impl Serialize for ShaderPass
impl Serialize for ShaderPass
impl StructuralPartialEq for ShaderPass
Auto Trait Implementations§
impl Freeze for ShaderPass
impl RefUnwindSafe for ShaderPass
impl Send for ShaderPass
impl Sync for ShaderPass
impl Unpin for ShaderPass
impl UnsafeUnpin for ShaderPass
impl UnwindSafe for ShaderPass
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