pub struct Buffer<T> { /* private fields */ }
Expand description
A Buffer to be used for sending and receiving data to/from the GPU.
Formats the value using the given formatter.
Read more
Converts into a C void pointer.
Returns the shared memory size. This is usally 0, except for
LocalBuffer
s. This
informations is used to allocate the memory correctly.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.