Struct bgfx_rs::static_lib::Program
source · [−]pub struct Program { /* private fields */ }
Implementations
sourceimpl Program
impl Program
sourcepub fn create_program(
vsh: &Shader,
fsh: &Shader,
destroy_shaders: bool
) -> Program
pub fn create_program(
vsh: &Shader,
fsh: &Shader,
destroy_shaders: bool
) -> Program
vsh
: Vertex shader.fsh
: Fragment shader.destroy_shaders
: If true, shaders will be destroyed when program is destroyed.
sourcepub fn create_compute_program(csh: &Shader, destroy_shaders: bool) -> Program
pub fn create_compute_program(csh: &Shader, destroy_shaders: bool) -> Program
csh
: Compute shader.destroy_shaders
: If true, shaders will be destroyed when program is destroyed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more