const_shader_layout 0.3.0

Compile-time checks for whether 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, impl_shader_layout_compat_primitive};

impl_shader_layout_compat_primitive!(f16);
impl_shader_layout_array!(f16);