[][src]Trait gpu::Program

pub trait Program {
    fn get_id(&self) -> u32;

    fn bind_buffer(&mut self, buffer: &Buffer, index: u32) { ... }
fn bind_texture(
        &mut self,
        texture: &dyn Texture,
        sampler: &Sampler,
        index: u32
    ) { ... }
fn bind_image(&mut self, texture: &dyn Texture, index: u32) { ... } }

Required methods

fn get_id(&self) -> u32

Loading content...

Provided methods

fn bind_buffer(&mut self, buffer: &Buffer, index: u32)

fn bind_texture(&mut self, texture: &dyn Texture, sampler: &Sampler, index: u32)

fn bind_image(&mut self, texture: &dyn Texture, index: u32)

Loading content...

Implementors

impl Program for ComputeProgram[src]

impl Program for RasterProgram[src]

Loading content...