Threadwell

Recent Notes

  • JohannesVuorine

    Aug 26, 2026

    • archive
    • twitter
    • johannesvuorine
  • Threads

    Aug 26, 2026

    • archive
  • iquilezles

    Aug 26, 2026

    • archive
    • twitter
    • iquilezles
Home

❯

Archive

❯

Threads

❯

iquilezles

❯

Hey, don't "optimize" conditional moves with mix()+step().

❯

@iquilezles Good advice! In HLSL you can also use the select() function to do the ternary which makes it explicit that you want a ternary, not sure if GLSL has a similar thing

@iquilezles Good advice! In HLSL you can also use the select() function to do the ternary which makes it explicit that you want a ternary, not sure if GLSL has a similar thing

Properties5
typearchive
sourcetwitter
date2025-02-09
tagsarchive, twitter, iquilezles
description@iquilezles Good advice! In HLSL you can also use the select() function to do the ternary which makes it explicit that you want a ternary, not sure if GLSL has a similar thing

Feb 09, 20251 min read

  • archive
  • twitter
  • iquilezles

Source

  • URL: https://x.com/redorav/status/1888531027016261912
  • Author: Emilio López (@redorav)
  • Posted: 2025-02-09 10:10:58

Branch

1/ @redorav

@iquilezles

Good advice! In HLSL you can also use the select() function to do the ternary which makes it explicit that you want a ternary, not sure if GLSL has a similar thing

Related

  • Spine: 2025-02-09-hey-dont-optimize-conditional-moves-with-mix-step

Graph View

  • Source
  • Branch
  • Related

Backlinks

  • Hey, don't "optimize" conditional moves with mix()+step().

Created with Quartz v5.0.0 © 2026

  • GitHub