[−][src]Enum web_glitz::buffer::UsageHint
Enumerates the available usage hint for Buffers.
A usage hint may be used to indicate to the GPU driver how you intend to use the data in the Buffer. The driver may use this information for performance optimizations.
Note that this is merely a performance hint: it does not affect what you can or cannot do with the Buffer.
Variants
Hints that the data will be uploaded once and read by the GPU repeatedly.
Hints that the data will be uploaded repeatedly and read by the GPU repeatedly.
Hints that the data will be uploaded once and read by the GPU at most a few times.
Hints that the data will be written by the GPU once and will be downloaded repeatedly.
Hints that the data will be written by the GPU repeatedly and will be downloaded repeatedly.
Hints that the data will be written by the GPU once and will be downloaded at most a few times.
Hints that the data will be written by the GPU once and read by the GPU repeatedly.
Hints that the data will be written by the GPU repeatedly and read by the GPU repeatedly.
Hints that the data will be written once by the GPU and read by the GPU at most a few times.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UsageHint
impl Send for UsageHint
impl Sync for UsageHint
impl Unpin for UsageHint
impl UnwindSafe for UsageHint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static,
[src]
D: Borrow<T> + 'static,
T: Copy + 'static,
pub fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static,
[src]
Rc: RenderingContext + Clone + 'static,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,