Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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