Skip to main content

GpuAllocated

Trait GpuAllocated 

Source
pub trait GpuAllocated {
    // Required methods
    fn get_gpu(&self) -> &'static GpuInstance;
    fn internal_gpu_buffer(&self) -> &GpuBuffer;

    // Provided method
    fn internal_buffer_size_in_bytes(&self) -> usize { ... }
}

Required Methods§

Source

fn get_gpu(&self) -> &'static GpuInstance

Source

fn internal_gpu_buffer(&self) -> &GpuBuffer

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§