pub struct MaterialSpec {
pub shader_source: &'static str,
pub entries: Vec<BindingEntry>,
pub cull_mode: Option<Face>,
pub depth: Option<DepthStencilState>,
pub color_format: Option<TextureFormat>,
}Fields§
§shader_source: &'static str§entries: Vec<BindingEntry>§cull_mode: Option<Face>§depth: Option<DepthStencilState>§color_format: Option<TextureFormat>Implementations§
Source§impl MaterialSpec
impl MaterialSpec
pub fn binding_index(&self, name: &str) -> Option<u32>
Source§impl MaterialSpec
impl MaterialSpec
pub fn new(shader_source: &'static str, entries: Vec<BindingEntry>) -> Self
pub fn with_cull_mode(self, mode: Option<Face>) -> Self
pub fn with_depth(self, depth: DepthStencilState) -> Self
pub fn with_color_format(self, format: TextureFormat) -> Self
Auto Trait Implementations§
impl Freeze for MaterialSpec
impl RefUnwindSafe for MaterialSpec
impl Send for MaterialSpec
impl Sync for MaterialSpec
impl Unpin for MaterialSpec
impl UnsafeUnpin for MaterialSpec
impl UnwindSafe for MaterialSpec
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