The docs say Vec3 is 12 bytes but I can't get that behavior on spirv. #657
-
|
I'm compiling as spirv using rust-gpu and I have this struct: The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I'm not an expert on rust-gpu as generally those changes have been contributed. All of the vector types appear to use |
Beta Was this translation helpful? Give feedback.
I'm not an expert on rust-gpu as generally those changes have been contributed. All of the vector types appear to use
repr(simd)on spirv, not justVec3, so I think the docs just don't cover rust-gpu behaviour at all. I assume that you are talking about the table under https://docs.rs/glam/latest/glam/#vec3a-and-mat3a? The docs could be updated to say this doesn't apply to spirv here, it would be better if someone who is more familiar with rust-gpu could make those docs clarifications though.