-
Notifications
You must be signed in to change notification settings - Fork 859
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
Add GL_EXT_shader_subgroup_extended_types support #1902
Conversation
|
||
"\n"); | ||
// Generate all flavors of subgroup ops. | ||
static const char *subgroupOps[] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; just have been fixing sizeof() -> size_t
things recently.
"bool", "bvec2", "bvec3", "bvec4", | ||
}; | ||
|
||
for (unsigned int i = 0; i < sizeof(subgroupOps)/sizeof(subgroupOps[0]); ++i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be size_t
to satisfy some environments.
char buf[bufSize]; | ||
|
||
if (!logicalOp) { | ||
for (unsigned int j = 0; j < sizeof(floatTypes)/sizeof(floatTypes[0]); ++j) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size_t
commonBuiltins.append(buf); | ||
} | ||
if (profile != EEsProfile && version >= 400) { | ||
for (unsigned int j = 0; j < sizeof(doubleTypes)/sizeof(doubleTypes[0]); ++j) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size_t
a46a09c
to
c5b669e
Compare
Fixed the size_t stuff. |
No description provided.