[glsl-in] Add test array constant dynamic indexing

This commit is contained in:
João Capucho authored and Dzmitry Malyshau committed 2021-09-17 13:47:38 -04:00
1 parent e824519378
commit 1cb4447ec3
2 files changed
+19

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#version 450 core
uint i;
const float[2] array = { 1.0, 2.0 };
void main() { array[i]; }
@@ -0,0 +1,13 @@
var<private> i: u32;
fn main1() {
var local: array<f32,2> = array<f32,2>(1.0, 2.0);
let _e2: u32 = i;
}
[[stage(vertex)]]
fn main() {
main1();
return;
}