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

Add GL_EXT_shader_subgroup_extended_types support #1902

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

jeffbolznv
Copy link
Contributor

No description provided.


"\n");
// Generate all flavors of subgroup ops.
static const char *subgroupOps[] =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Copy link
Member

@johnkslang johnkslang left a 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) {
Copy link
Member

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) {
Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size_t

@jeffbolznv
Copy link
Contributor Author

Fixed the size_t stuff.

@johnkslang johnkslang merged commit e4e56bc into KhronosGroup:master Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants