Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
use encase::ShaderType;
#[derive(ShaderType)]
struct S {
x: f32,
}
#[derive(ShaderType)]
struct WrappedF32 {
#[size(16)]
elem: f32,
}
#[derive(ShaderType)]
struct TestStruct {
a: u32,
#[align(16)]
b: S,
}
#[derive(ShaderType)]
struct TestArray {
a: u32,
#[align(16)]
b: [WrappedF32; 1],
}
#[derive(ShaderType)]
struct TestStructFirst {
a: S,
#[align(16)]
b: f32,
}
#[test]
fn assert_uniform_compat_success() {
TestStruct::assert_uniform_compat();
TestArray::assert_uniform_compat();
TestStructFirst::assert_uniform_compat();
}