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

glsl-out: Fix feature search in expressions #1887

Merged
merged 1 commit into from
May 5, 2022

Conversation

JCapucho
Copy link
Collaborator

@JCapucho JCapucho commented May 2, 2022

The fma wasn't being searched in case it wasn't supported which is the
opposite of what we want since if it's used we want to error if it isn't
supported.

It was also searching in all entry points instead of only in the current
one.

All samples queries need the ARB_shader_texture_image_samples extension
so we need to check if any samples queries are made and if so request
the extension.

tests/out/glsl/functions-webgl.main.Vertex.glsl Outdated Show resolved Hide resolved
src/back/glsl/features.rs Show resolved Hide resolved
It was also searching in all entry points instead of only in the current
one.

All samples queries need the ARB_shader_texture_image_samples extension
so we need to check if any samples queries are made and if so request
the extension.
@JCapucho JCapucho merged commit cf32c2b into gfx-rs:master May 5, 2022
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