pub struct Context(/* private fields */);
Expand description
Implementations§
source§impl Context
impl Context
pub fn make_shader<M, A>(&self, module: M) -> Shader<M::Vertex, M::Instance>where
M: IntoModule<A>,
pub fn make_binder<'a, V, I>(&'a self, shader: &'a Shader<V, I>) -> Binder<'a>
pub fn make_uniform<U>(&self, val: U) -> Uniform<U::Value>where
U: IntoValue,
pub fn make_layer<V, I, O>(&self, shader: &Shader<V, I>, opts: O) -> Layer<V, I>
pub fn make_mesh<V>(&self, data: &MeshData<'_, V>) -> Mesh<V>where
V: Vertex,
pub fn make_row<U>(&self, data: &[U]) -> Row<U>where
U: Value,
pub fn make_texture<M>(&self, data: M) -> M::Outwhere
M: Make,
pub fn make_sampler(&self, filter: Filter) -> Sampler
pub fn make_copy_buffer(&self, size: (u32, u32)) -> CopyBuffer
pub async fn map_view<'a, S, R, F>(
&self,
view: CopyBufferView<'a>,
tx: S,
rx: R
) -> Mapped<'a>where
S: FnOnce(MapResult) + WasmNotSend + 'static,
R: FnOnce() -> F,
F: IntoFuture<Output = MapResult>,
pub fn update_group<G>(
&self,
uni: &mut UniqueBinding,
handler: &GroupHandler<G::Projection>,
group: &G
) -> Result<(), ForeignShader>where
G: Visit,
pub fn draw_to<T, D>(&self, target: &T, draw: D)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more