Elektrine lite

← Feed

@dotstdy@mastodon.social

Post #2290672

2026-05-08 06:18 UTC

@gfxstrand@social.treehouse.systems Yeah the caching is bonkers, I also suppose it's a lot about whether making the analysis more complex is profitable in real shaders. Like if there's no potentially aliasing stores in a shader then you could theoretically promote the bda loads to NoAlias even if they're not marked as such. But you could also just argue that whatever generates the spir-v could do this itself and save everyone the trouble. (glsl has a pass which does this, but spir-v is a bit more "you break, you buy")

Replies (1)

  • @dotstdy@mastodon.social We do the best we can with what we’re given, just like a C compiler. And just like a C compiler, you can sometimes get better output by using temporaries and avoiding unnecessary pointer accesses.

    Open ##2290673