const_shader_layout 0.3.4

Compile-time checks to ensure structs conform to WGSL's memory layout rules
Documentation
1
2
3
4
5
6
7
#[cfg(feature = "half")]
use half::f16;

use crate::{impl_shader_layout_array_element, impl_shader_layout_compat_primitive};

impl_shader_layout_compat_primitive!(f16);
impl_shader_layout_array_element!(f16);