Type Alias Sampler

Source
pub type Sampler = Object<SamplObj>;

Aliased Type§

struct Sampler {
    pub obj: u32,
    /* private fields */
}

Fields§

§obj: u32

Implementations§

Source§

impl Sampler

Source

pub fn pooled(id: u32, args: &[(GLenum, GLenum)]) -> Rc<Self>

Source

pub fn linear() -> Rc<Self>

Source§

impl Sampler

Source

pub fn Parameter(&mut self, name: GLenum, args: impl SamplerArg)

Trait Implementations§

Source§

impl<S: AsRef<[(GLenum, GLenum)]>> From<S> for Sampler

Source§

fn from(args: S) -> Self

Converts to this type from the input type.