pub fn with_raw_constant_buffer(
        &mut self,
        name: &'a str,
        size: usize,
        num: usize,
    ) -> &mut Self {
        self.const_bufs.push(BufferInfo {
            role: BufferRole::Constant,
            bind: Bind::empty(),
            usage: Usage::Dynamic,
            size: num * size,
            stride: size,
        });
        self.init.const_bufs.push(name);
        self
    }
/// Adds a raw uniform constant to this `Effect`.
///
/// Requests a new constant buffer to be created
Adds a raw uniform constant to this `Effect`.
Requests a new constant buffer to be created
Adds a raw uniform constant to this ` Effect ` . Requests a new constant buffer to be created
pub fn with_raw_constant_buffer(
        &mut self,
        name: &'a str,
        size: usize,
        num: usize,
    ) -> &mut Self {
        self.const_bufs.push(BufferInfo {
            role: BufferRole::Constant,
            bind: Bind::empty(),
            usage: Usage::Dynamic,
            size: num * size,
            stride: size,
        });
        self.init.const_bufs.push(name);
        self
    }
pub fn with_raw_constant_buffer ( & mut self , name : & ' a str , size : usize , num : usize , ) -> & mut Self { self . const_bufs . push ( BufferInfo { role : BufferRole :: Constant , bind : Bind :: empty ( ) , usage : Usage :: Dynamic , size : num * size , stride : size , } ) ; self . init . const_bufs . push ( name ) ; self }
Adds a raw uniform constant to this `Effect`.
Adds a raw uniform constant to this ` Effect ` .
&mut self
name
&'a str
size
usize
num
usize
&mut self
name
&'a str
size
usize
num
usize