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§