Trait sierra::ShaderNative
source · pub unsafe trait ShaderNative: Pod {
type ArrayPadding140: Padding;
type ArrayPadding430: Padding;
const ALIGN_MASK: usize;
const ARRAY_PADDING_140: usize;
const ARRAY_PADDING_430: usize;
}
Expand description
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.