Skip to main content

BufferDataInput

Trait BufferDataInput 

Source
pub trait BufferDataInput: AtomicPod {
    type Previous: AtomicPod;
}
Expand description

A trait that defines the data that we supply to the GPU for a single mesh instance (2D or 3D).

A compute shader is expected to expand this data to the full buffer data type. See BatchedInstanceBuffers for more detail.

Required Associated Types§

Source

type Previous: AtomicPod

The type of the data that we supply for the GPU for the previous

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl BufferDataInput for ()

Implementors§