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

Fix undefined enums #286

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Fix undefined enums #286

merged 4 commits into from
Nov 11, 2024

Conversation

s-perron
Copy link
Contributor

There are a few places where an enum value is purpoposly getting a value
that is not one of the enum values. This is causing a problem when
testing. I have a quick fix to make those values int instead of the
enum type.

The variables could contain -1 as a special value to indicate that no
storage class or builtin is used. We cannot change the enum class to add
-1 because it is defined in spirv headers.

There are a few places where an enum value is purpoposly getting a value
that is not one of the enum values. This is causing a problem when
testing. I have a quick fix to make those values `int` instead of the
enum type.

The variables could contain `-1` as a special value to indicate that no
storage class or builtin is used. We cannot change the enum class to add
`-1` because it is defined in spirv headers.
spirv_reflect.h Outdated Show resolved Hide resolved
Co-authored-by: Spencer Fricke <115671160+spencer-lunarg@users.noreply.github.com>
@s-perron s-perron merged commit 4c6d3f3 into KhronosGroup:main Nov 11, 2024
5 checks passed
@s-perron s-perron deleted the ub branch November 11, 2024 18:11
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.

3 participants