msiglreith / inspirv-rust

Rust (MIR) → SPIR-V (Shader) compiler
Other
57 stars 1 forks source link

Array type support #3

Open msiglreith opened 7 years ago

msiglreith commented 7 years ago

Example:

struct Foo {
    a: [u8; 4],
}
fn vertex(locals: Cbuffer<Foo>) {
    let x = [0; 8];
}

Requires support in inspirv-builder (offset, alignment and type definition).