missing members?
greggman opened this issue · 1 comments
greggman commented
If I take the shader in this test
wgsl_reflect/test/tests/test_reflect.js
Line 51 in fa01764
Which is this
alias material_index = u32;
alias color = vec3f;
struct material {
index: material_type,
diffuse: color,
}
@group(0) @binding(1) var<storage> materials: array<material>;
Then I make a WgslReflect
const reflect = new WgslReflect(code);
and I look at the result it looks good.
But then I call
const info = reflect.getStructInfo(relect.structs[0);
and that's missing a member
greggman commented
actually it's just a typo in the shader