Struct u32
field is always 0
#206
Unanswered
Steveplays28
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hello! Do you have a public repo I can look at to try to debug? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to move this struct from the CPU to the GPU, but the
material
field is always0
. On the other hand, theposition
andradius
fields get sent over correctly.I tried moving the padding fields around, but the order doesn't matter. This same struct fully works as intended if I use
position: Vec4
,radius: Vec4
andmaterial: i32
instead, which is what I had previously (I wanted to change it toVec3
for ease of use).Why would this occur?
Beta Was this translation helpful? Give feedback.
All reactions