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-in: inject samplerCubeArray builtins on use #1736

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

JCapucho
Copy link
Collaborator

Arrayed cube images require a special capabilities in some backends, so
like how we already do with doubles, we now only inject them if a call
uses one as an argument.

This required some refractoring on the builtins handling of variations
but now the interface is cleaner and adding new variations (if needed)
should be easier.

Closes #1622

Arrayed cube images require a special capabilities in some backends, so
like how we already do with doubles, we now only inject them if a call
uses one as an argument.

This required some refractoring on the builtins handling of variations
but now the interface is cleaner and adding new variations (if needed)
should be easier.
@JCapucho JCapucho requested a review from kvark February 18, 2022 22:47
Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Would be good to have it tested too

@kvark kvark merged commit 66d59eb into gfx-rs:master Feb 19, 2022
@JCapucho JCapucho deleted the glsl-cube-array-builtins branch February 19, 2022 15:10
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.

[glsl-in] inject_builtin injects dependency on CUBE_TEXTURES_ARRAY feature
2 participants