Trait ShaderCode

Source
pub trait ShaderCode {
    // Required method
    fn into_vec(self) -> Vec<u8> ;
}
Expand description

Trait for types which can be converted into shader code.

Required Methods§

Source

fn into_vec(self) -> Vec<u8>

Converts the instance into SPIR-V shader code specified as a byte array.

Implementations on Foreign Types§

Source§

impl ShaderCode for &[u8]

Source§

fn into_vec(self) -> Vec<u8>

Source§

impl ShaderCode for &[u32]

Source§

fn into_vec(self) -> Vec<u8>

Source§

impl ShaderCode for Vec<u8>

Source§

fn into_vec(self) -> Vec<u8>

Source§

impl ShaderCode for Vec<u32>

Source§

fn into_vec(self) -> Vec<u8>

Implementors§