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

glsl-in: Splat inputs for smoothstep if needed #1976

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

JCapucho
Copy link
Collaborator

@JCapucho JCapucho commented Jun 7, 2022

Glsl defines two overloads for smoothstep that accept min and max as
scalars and the value as a vector, naga's IR is stricter and only allows
operators with the same dimensions, so this inputs must be splatted.

closes #1971

Glsl defines two overloads for smoothstep that accept `min` and `max` as
scalars and the value as a vector, naga's IR is stricter and only allows
operators with the same dimensions, so this inputs must be splatted.
@JCapucho JCapucho force-pushed the glsl-in-smoothstep-splat branch from d071e0c to 81d7724 Compare June 7, 2022 16:08
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

LGTM

@jimblandy jimblandy merged commit 52bb251 into gfx-rs:master Jun 14, 2022
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] naga does not accept all glsl smoothstep overloads
3 participants