You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because without specifying a layout, the size of a type is not defined. A struct can have different sizes depending on where it is used/how it is laid out. For example the std140 and std430 layouts would have lead to different answers of sizeof(T).
For this reason, static assert checks like you provided is not possible today.
We can add support for things like sizeof(T, std430) to return a size under a specified layout, but this feature would need to come at a later time.
We can add support for things like sizeof(T, std430) to return a size under a specified layout, but this feature would need to come at a later time.
yes please that would be nice, should I open a new issue as a feature request or will this issue do ?
the static_assert line casues an error
I believe this is a bug ?
on commit 5d8cf47
The text was updated successfully, but these errors were encountered: