-
Notifications
You must be signed in to change notification settings - Fork 54
Union cast failed #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Nope, even at commit 2f915a0 error still appears |
I tried trick it with pub fn arr(self) -> [f32; 5] {
unsafe { core::mem::transmute(self) }
} Error:
|
Ok great, I'll take a look. |
Wasn't able to find the root cause. This is going to churn shortly with some bigger qptr work so I am hesitant to spend more time until that lands |
@LegNeato Perhaps I can assist you with the QPTR, but I require further information. Could you please elaborate on what it is and from where it originates? |
Expected Behaviour
Can cast
[f32; 5]
as Data{ a: f32, b: [f32; 3], c: f32 }
Example & Steps To Reproduce
in shader:
Produces:
System Info
The text was updated successfully, but these errors were encountered: