Skip to content

Floating clamp can be median-of-three - #2681

Merged
dneto0 merged 1 commit into
gpuweb:mainfrom
dneto0:issue-2557-clamp
Mar 23, 2022
Merged

dneto0 merged 1 commit into
gpuweb:mainfrom
dneto0:issue-2557-clamp

Conversation

@dneto0

@dneto0 dneto0 commented Mar 22, 2022

Copy link
Copy Markdown
Contributor

Fixes: #2557

@dneto0 dneto0 added wgsl WebGPU Shading Language Issues wgsl resolved Resolved - waiting for a change to the WGSL specification labels Mar 22, 2022
@dneto0 dneto0 added this to the V1.0 milestone Mar 22, 2022
@dneto0
dneto0 requested a review from alan-baker March 22, 2022 22:00
@dneto0

dneto0 commented Mar 22, 2022

Copy link
Copy Markdown
Contributor Author

This is the consensus reached in today's WGSL meeting (notes)

@github-actions

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (c200643):
WebGPU | IDL
WGSL
Explainer

@alan-baker alan-baker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We also agreed that integer clamp should be min(max(e, low), high)

@alan-baker alan-baker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And now I realize integer clamp is already described that way. Oops.

@dneto0
dneto0 merged commit faee2a2 into gpuweb:main Mar 23, 2022
github-actions Bot added a commit that referenced this pull request Mar 23, 2022
SHA: faee2a2
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Mar 23, 2022
SHA: faee2a2
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Mar 23, 2022
SHA: faee2a2
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wgsl resolved Resolved - waiting for a change to the WGSL specification wgsl WebGPU Shading Language Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should clamp be only defined for low <= high?

2 participants