Trait rokol::gfx::BakedResource[][src]

pub trait BakedResource {
    type Id;
    type Desc;
    fn create(desc: &Self::Desc) -> Self::Id;
fn alloc() -> Self::Id;
fn init(id: Self::Id, desc: &Self::Desc);
fn destroy(id: Self::Id);
fn uninit(id: Self::Id);
fn dealloc(id: Self::Id); }
Expand description

Buffer | Image | Pipeline | Pass | Shader

Resource object baked into immutable state.

Associated Types

Required methods

alloc + init

Initializes an allocated resource object

uninit + dealloc

Deallocates an uninitlized resouce object

Implementors