hardware 0.0.9

A no_std bare-metal hardware abstraction layer — all port I/O, memory and swap allocations are guarded at runtime. Do not consider this dependency stable before x.1.x
Documentation
#[derive(Copy, Clone)]
pub struct Shader {
    pub bytecode_ptr: *const u8,
    pub bytecode_len: usize,
}

impl Shader {
    pub fn from_bytes(bytes: &[u8]) -> Self {
        Shader {
            bytecode_ptr: bytes.as_ptr(),
            bytecode_len: bytes.len(),
        }
    }
    pub fn len(&self) -> usize {
        self.bytecode_len
    }
    pub fn is_empty(&self) -> bool {
        self.bytecode_len == 0
    }
}