[−][src]Struct gpu::RasterProgram
Methods
impl RasterProgram
[src]
pub const TRIANGLES: u32
[src]
pub const POINTS: u32
[src]
pub fn new(
fragment_shader: &FragmentShader,
vertex_shader: &VertexShader
) -> Result<Self, String>
[src]
fragment_shader: &FragmentShader,
vertex_shader: &VertexShader
) -> Result<Self, String>
pub fn raster(
&self,
framebuffer: &Framebuffer,
vao: &VertexArrayObject,
geometry: RasterGeometry,
elements: u32
)
[src]
&self,
framebuffer: &Framebuffer,
vao: &VertexArrayObject,
geometry: RasterGeometry,
elements: u32
)
Trait Implementations
impl Program for RasterProgram
[src]
fn get_id(&self) -> u32
[src]
fn bind_buffer(&mut self, buffer: &Buffer, index: u32)
[src]
fn bind_texture(&mut self, texture: &dyn Texture, sampler: &Sampler, index: u32)
[src]
fn bind_image(&mut self, texture: &dyn Texture, index: u32)
[src]
impl Drop for RasterProgram
[src]
Auto Trait Implementations
impl Send for RasterProgram
impl Unpin for RasterProgram
impl Sync for RasterProgram
impl UnwindSafe for RasterProgram
impl RefUnwindSafe for RasterProgram
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,