Closed MoritzKn closed 2 years ago
Is this an issue with deriving new
? Seems like it might be an issue whether or not that is used, in which case this issue would be better on the rust repo?
My bad! I opened the issue in the entirely wrong repo. I seem to have messed up browser tabs.
The docs say that
I spend quite some time chasing a bug caused by assuming this is always true. I'm not sure if this is due to some edge case in my structs or my driver (M1 MacBook) or if this simply always the case.
I have two (assumed to be) identical structs declared in OpenCl and in Rust. The one in OpenCL C has a
sizeof
48 and the one in Rust hassize_of
36:This causes all kinds of issues.
Including this error when using
Buffer::builder().len(1).fill_val(Light::default())
:Proposed solution
I assume there isn't much this crate can do about this but maybe it's possible to add a note about this to the docs.
My Platform