Enum GPUResourceMemoryType
#[repr(i32)]pub enum GPUResourceMemoryType {
GpuOnly = 0,
GpuAndRam = 1,
RamOnly = 2,
}Expand description
Legacy version of enum “kanzi.GPUResource.MemoryType”. Memory upload and RAM preservation strategy for GPU resources.
Variants§
GpuOnly = 0
Data will be uploaded to the GPU and destroyed locally (default).
GpuAndRam = 1
Data will remain in memory after being uploaded to the GPU.
RamOnly = 2
Data will not be uploaded to GPU and will be sent from RAM whenever needed. NOTE: This is not always possible, in which case the behavior equals GpuAndRam.
Implementations§
§impl GPUResourceMemoryType
impl GPUResourceMemoryType
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> GPUResourceMemoryType
Trait Implementations§
§impl Clone for GPUResourceMemoryType
impl Clone for GPUResourceMemoryType
§fn clone(&self) -> GPUResourceMemoryType
fn clone(&self) -> GPUResourceMemoryType
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 more§impl Debug for GPUResourceMemoryType
impl Debug for GPUResourceMemoryType
§impl Display for GPUResourceMemoryType
impl Display for GPUResourceMemoryType
§impl PartialEq for GPUResourceMemoryType
impl PartialEq for GPUResourceMemoryType
§impl VariantConstraint for GPUResourceMemoryType
impl VariantConstraint for GPUResourceMemoryType
§type DataArg<'a> = GPUResourceMemoryType
type DataArg<'a> = GPUResourceMemoryType
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = GPUResourceMemoryType
type RetArg = GPUResourceMemoryType
§fn as_arg(&self) -> <GPUResourceMemoryType as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <GPUResourceMemoryType as VariantConstraint>::DataArg<'_>
impl Copy for GPUResourceMemoryType
impl Eq for GPUResourceMemoryType
impl PropertyTypeConstraint for GPUResourceMemoryType
impl StructuralPartialEq for GPUResourceMemoryType
Auto Trait Implementations§
impl Freeze for GPUResourceMemoryType
impl RefUnwindSafe for GPUResourceMemoryType
impl Send for GPUResourceMemoryType
impl Sync for GPUResourceMemoryType
impl Unpin for GPUResourceMemoryType
impl UnwindSafe for GPUResourceMemoryType
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