sierra 0.6.0

Vulkan-lite graphics API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use {super::pad::Padding, bytemuck::Pod};

/// Type that can be represented in shader natively.
/// i.e. with matching layout, and can be copied as-is.
///
/// # Safety
///
/// Must be implemented only by types that can be represented by shaders natively.
pub unsafe trait ShaderNative: Pod {
    const ALIGN_MASK: usize;

    const ARRAY_PADDING_140: usize;
    const ARRAY_PADDING_430: usize;

    type ArrayPadding140: Padding;
    type ArrayPadding430: Padding;
}