pub struct Material {
pub shader_module: ShaderModule,
pub vertex_uniform_buffer: Buffer,
pub uniform_bind_group_layout: BindGroupLayout,
pub uniform_bind_group: BindGroup,
pub pipeline_layout: PipelineLayout,
pub pipeline: RenderPipeline,
}Fields§
§shader_module: ShaderModule§vertex_uniform_buffer: Buffer§uniform_bind_group_layout: BindGroupLayout§uniform_bind_group: BindGroup§pipeline_layout: PipelineLayout§pipeline: RenderPipelineImplementations§
Source§impl Material
impl Material
pub fn new_default(engine: &mut Engine) -> Material
pub fn new_2d_terrain(max_height: f32, engine: &mut Engine) -> Material
pub fn new_sphere_terrain( sphere_radius: f32, max_height: f32, engine: &mut Engine, ) -> Material
pub fn bind<'a, 'b>(&'a self, render_pass: &'b mut RenderPass<'a>)
Auto Trait Implementations§
impl !Freeze for Material
impl !RefUnwindSafe for Material
impl !UnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnsafeUnpin for Material
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