StaticMesh

Type Alias StaticMesh 

Source
pub type StaticMesh<V, E, I, C> = Mesh<BufferWithType<V>, V, BufferWithType<E>, E, BufferVec<I>, I, BufferVec<C>, C>;
Expand description

The most typical static mesh type: use BufferWithType for vertices and elements(indices), use BufferVec for instances and draw commands

Aliased Type§

pub struct StaticMesh<V, E, I, C> {
    pub primitive_type: VkPrimitiveTopology,
    pub vertices: Arc<RwLock<BufferWithType<V>>>,
    pub indices: Option<Arc<RwLock<BufferWithType<E>>>>,
    pub instances: Option<Arc<RwLock<BufferVec<I>>>>,
    pub commands: Option<Arc<RwLock<BufferVec<C>>>>,
    /* private fields */
}

Fields§

§primitive_type: VkPrimitiveTopology§vertices: Arc<RwLock<BufferWithType<V>>>§indices: Option<Arc<RwLock<BufferWithType<E>>>>§instances: Option<Arc<RwLock<BufferVec<I>>>>§commands: Option<Arc<RwLock<BufferVec<C>>>>