Skip to content
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

Feature request: sizeof #5880

Open
sivansh11 opened this issue Dec 16, 2024 · 0 comments
Open

Feature request: sizeof #5880

sivansh11 opened this issue Dec 16, 2024 · 0 comments
Labels
goal:forward looking Feature needed at a later date, not connected to a specific use case.

Comments

@sivansh11
Copy link

problem described in #5872

possible syntax

[layout(std430)]
struct some_struct_t {
  ...
};
static_assert(sizeof(some_struct_t) == X, "sizeof(some_struct_t) != X");

or

struct some_struct_t {
  ...
};
static_assert(sizeof(some_struct_t, std430) == X, "sizeof(some_struct_t) != X");
@bmillsNV bmillsNV added the goal:forward looking Feature needed at a later date, not connected to a specific use case. label Dec 16, 2024
@bmillsNV bmillsNV added this to the Q1 2025 (Winter) milestone Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:forward looking Feature needed at a later date, not connected to a specific use case.
Projects
None yet
Development

No branches or pull requests

2 participants