asdf-overlay-vulkan-layer 1.2.3

Asdf Overlay vulkan layer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Helper struct for shader code alignment
#[repr(align(4))]
struct AlignHelper<T> {
    bytes: T,
}

// SPIR-V vertex shader compiled with `glslangvalidator -V texture.vert -o texture_vs.spv`
pub const VERTEX_SHADER: &[u8] = &AlignHelper {
    bytes: *include_bytes!("shaders/texture_vs.spv"),
}
.bytes;

/// SPIR-V fragment shader compiled with `glslangvalidator -V texture.frag -o texture_fs.spv`
pub const FRAGMENT_SHADER: &[u8] = &AlignHelper {
    bytes: *include_bytes!("shaders/texture_fs.spv"),
}
.bytes;