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,9 @@
use encase::{ArrayLength, ShaderType};
fn main() {}
#[derive(ShaderType)]
struct Test {
a: ArrayLength,
b: ArrayLength,
}

View File

@@ -0,0 +1,11 @@
error: `ArrayLength` type can only be used within a struct containing a runtime-sized array marked as `#[size(runtime)]`!
--> tests/compile_fail/array_length_err.rs:7:8
|
7 | a: ArrayLength,
| ^^^^^^^^^^^
error: only one field can use the `ArrayLength` type!
--> tests/compile_fail/array_length_err.rs:8:8
|
8 | b: ArrayLength,
| ^^^^^^^^^^^

View File

@@ -0,0 +1,6 @@
use encase::ShaderType;
fn main() {}
#[derive(ShaderType)]
struct Test;

View File

@@ -0,0 +1,7 @@
error: Only non empty structs with named fields are supported!
--> tests/compile_fail/general_struct_err.rs:5:10
|
5 | #[derive(ShaderType)]
| ^^^^^^^^^^
|
= note: this error originates in the derive macro `ShaderType` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@@ -0,0 +1,15 @@
use encase::ShaderType;
fn main() {}
#[derive(ShaderType)]
struct Test {
#[align]
a: u32,
#[align()]
b: u32,
#[align(invalid)]
c: u32,
#[align(3)]
d: u32,
}

View File

@@ -0,0 +1,23 @@
error: expected attribute arguments in parentheses: `align(...)`
--> tests/compile_fail/invalid_align_attr.rs:7:7
|
7 | #[align]
| ^^^^^
error: expected a power of 2 u32 literal
--> tests/compile_fail/invalid_align_attr.rs:9:13
|
9 | #[align()]
| ^
error: expected a power of 2 u32 literal
--> tests/compile_fail/invalid_align_attr.rs:11:13
|
11 | #[align(invalid)]
| ^^^^^^^
error: expected a power of 2 u32 literal
--> tests/compile_fail/invalid_align_attr.rs:13:14
|
13 | #[align(3)]
| ^

View File

@@ -0,0 +1,15 @@
use encase::ShaderType;
fn main() {}
#[derive(ShaderType)]
struct Test {
#[size]
a: u32,
#[size()]
b: u32,
#[size(invalid)]
c: u32,
#[size(-1)]
d: u32,
}

View File

@@ -0,0 +1,23 @@
error: expected attribute arguments in parentheses: `size(...)`
--> tests/compile_fail/invalid_size_attr.rs:7:7
|
7 | #[size]
| ^^^^
error: expected u32 literal
--> tests/compile_fail/invalid_size_attr.rs:9:12
|
9 | #[size()]
| ^
error: expected u32 literal
--> tests/compile_fail/invalid_size_attr.rs:11:12
|
11 | #[size(invalid)]
| ^^^^^^^
error: expected u32 literal or `runtime` identifier
--> tests/compile_fail/invalid_size_attr.rs:13:14
|
13 | #[size(-1)]
| ^