Struct game_kernel::game_kernel::subsystems::video::renderer::material::Material[][src]

pub struct Material {
    pub custom_vertex_shader: Option<Arc<RuntimeShader>>,
    pub fragment_shader: Arc<RuntimeShader>,
    pub blend_mode: BlendMode,
    pub textures: Vec<Arc<Texture>>,
}

Fields

custom_vertex_shader: Option<Arc<RuntimeShader>>fragment_shader: Arc<RuntimeShader>blend_mode: BlendModetextures: Vec<Arc<Texture>>

Implementations

impl Material[src]

pub unsafe fn test_new(
    device: Arc<Device>,
    tex: Arc<Texture>,
    normal_map: Arc<Texture>
) -> Self
[src]

pub fn get_normal_map(&self) -> Option<Arc<Texture>>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.