[−][src]Trait web_glitz::buffer::IntoBuffer
Trait implemented for types that represent or contain data that may be stored in a Buffer.
Uploading data to a buffer involves doing a bitwise copy, as does downloading data from a
buffer. WebGlitz relies on the semantics associated with the Copy
trait to ensure that this
is safe and does not result in memory leaks.
Required methods
fn into_buffer<Rc>(
self,
context: &Rc,
buffer_id: BufferId,
usage_hint: UsageHint
) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static,
self,
context: &Rc,
buffer_id: BufferId,
usage_hint: UsageHint
) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static,
Implementors
impl<D, T> IntoBuffer<[T]> for D where
D: Borrow<[T]> + 'static,
T: Copy + 'static,
[src]
D: Borrow<[T]> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(
self,
context: &Rc,
buffer_id: BufferId,
usage_hint: UsageHint
) -> Buffer<[T]> where
Rc: RenderingContext + Clone + 'static,
[src]
self,
context: &Rc,
buffer_id: BufferId,
usage_hint: UsageHint
) -> Buffer<[T]> where
Rc: RenderingContext + Clone + 'static,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static,
[src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(
self,
context: &Rc,
buffer_id: BufferId,
usage_hint: UsageHint
) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static,
[src]
self,
context: &Rc,
buffer_id: BufferId,
usage_hint: UsageHint
) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static,