diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2021-09-06 17:30:16 -0500 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2021-09-06 18:14:13 -0500 |
| commit | 3d8cd57c2f166cb92204e95a5f4c73ab20fed4f2 (patch) | |
| tree | 39e684d53a9b9204221103d807853bdebb3ee80f | |
| parent | c2f0e99d854d399880d05f546953659c2d170d54 (diff) | |
| download | rust-3d8cd57c2f166cb92204e95a5f4c73ab20fed4f2.tar.gz rust-3d8cd57c2f166cb92204e95a5f4c73ab20fed4f2.zip | |
tests: add files for issue 4579
| -rw-r--r-- | tests/source/issue_4579.rs | 15 | ||||
| -rw-r--r-- | tests/target/issue_4579.rs | 16 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/source/issue_4579.rs b/tests/source/issue_4579.rs new file mode 100644 index 00000000000..73f345233ba --- /dev/null +++ b/tests/source/issue_4579.rs @@ -0,0 +1,15 @@ +// rustfmt-hard_tabs: true + +#[macro_export] +macro_rules! main { + () => { + #[spirv(fragment)] + pub fn main_fs( + mut out_color: ::spirv_std::storage_class::Output<Vec4>, + #[spirv(descriptor_set = 1)]iChannelResolution: ::spirv_std::storage_class::UniformConstant< + [::spirv_std::glam::Vec3A; 4], + >, + ) { + } + }; +} diff --git a/tests/target/issue_4579.rs b/tests/target/issue_4579.rs new file mode 100644 index 00000000000..7b0a5f3a62e --- /dev/null +++ b/tests/target/issue_4579.rs @@ -0,0 +1,16 @@ +// rustfmt-hard_tabs: true + +#[macro_export] +macro_rules! main { + () => { + #[spirv(fragment)] + pub fn main_fs( + mut out_color: ::spirv_std::storage_class::Output<Vec4>, + #[spirv(descriptor_set = 1)] + iChannelResolution: ::spirv_std::storage_class::UniformConstant< + [::spirv_std::glam::Vec3A; 4], + >, + ) { + } + }; +} |
