pub enum HalBufferType {
Storage,
Upload,
Download,
UploadDownload,
}Variants§
Storage
Used for kernel access. Memory type on GPU that can be copied around on GPU but is optimized for local access.
Upload
Best for uploading data to GPU. Memory type on GPU that can be written to from CPU and copied from on GPU.
Download
Best for downloading data from GPU. Memory type on GPU that can be copied to from GPU and read from CPU.
UploadDownload
Trait Implementations§
Source§impl Clone for HalBufferType
impl Clone for HalBufferType
Source§fn clone(&self) -> HalBufferType
fn clone(&self) -> HalBufferType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HalBufferType
impl Debug for HalBufferType
Source§impl Default for HalBufferType
impl Default for HalBufferType
Source§fn default() -> HalBufferType
fn default() -> HalBufferType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HalBufferType
impl<'de> Deserialize<'de> for HalBufferType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HalBufferType
impl PartialEq for HalBufferType
Source§impl Serialize for HalBufferType
impl Serialize for HalBufferType
impl Copy for HalBufferType
impl Eq for HalBufferType
impl StructuralPartialEq for HalBufferType
Auto Trait Implementations§
impl Freeze for HalBufferType
impl RefUnwindSafe for HalBufferType
impl Send for HalBufferType
impl Sync for HalBufferType
impl Unpin for HalBufferType
impl UnsafeUnpin for HalBufferType
impl UnwindSafe for HalBufferType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.