mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
[glsl-in] Add test array constant dynamic indexing
This commit is contained in:
1 parent
e824519378
commit
1cb4447ec3
2 files changed
+19
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user