David Neto · @dneto
363 followers · 1352 posts · Server mastodon.gamedev.place

My team started looking at subgroup support for again. We pushed it out of the initial feature set due to our staffing load and suspected non portability. Revisiting it now.

Sadly, and frustratingly, implementations don't do what programmers think should happen. We are seeing very very nonportable behavior.

Still collecting data across devices and platforms that we will share soon enough.

#webgpu #WGSL

Last updated 1 year ago

zeno · @Zeno
116 followers · 1377 posts · Server fosstodon.org

OMG I got it working. MD5 calculations on the gpu with and .
Now I only need to fix zero length strings, if they appear as the only input and test all of it.

#wgpu #WGSL

Last updated 1 year ago

David Neto · @dneto
351 followers · 1094 posts · Server mastodon.gamedev.place

@floooh

Nice to see use of Google's Tint library to translate SPIR-V to
File bugs if you find deficiencies

If you work in Rust, look to Mozilla's Naga to provide similar functionality.

#WGSL

Last updated 1 year ago

Ghadeer Abou-Saleh · @gee8sh
53 followers · 215 posts · Server techhub.social

Not that I prefer over ... In fact, I feel now more familiar/fluent with the latter, but I am curious to know what WGSL offers that GLSL lacks, or perhaps what GLSL offers that is deemed inadequate for the Web. Any security or portability or similar concerns that ruled GLSL out? Or is it just a matter of decoupling Web standards from native standards?

My impression is that there's a consensus that is appreciated as a simpler/more approachable API than but also more modern, flexible and closer to the metal than / ... But I think opinions are far more mixed/varied when it comes to WGSL. Would this become a hurdle in the path of adoption?

Not sure why I am pondering these questions 😅 I guess just curiosity. For my personal modest needs, I doubt I will ever write WebGL/OpenGL code again, unless WebGPU adoption falters, which would be very unfortunate. Adoption seems healthy to me so far.

#glsl #WGSL #webgpu #vulkan #webgl #opengl

Last updated 1 year ago

· @qgi
25 followers · 123 posts · Server mastodon.gamedev.place

Spent way to much time trying to figure out how the cube sampler in , (in Chrome on
Windows) is supposed to work. If I look up a direction, the result is always flipped horizontally (per sample image). Anyone got any ideas?

#webgpu #WGSL

Last updated 1 year ago

David Neto · @dneto
338 followers · 917 posts · Server mastodon.gamedev.place

Current status: writing conformance tests for bitcast.
Both positive and negative cases.

The float cases are tricky because of the permitted runtime behaviours for inf and nan. But for const-evaluation, inf and nan must be rejected.

#WGSL

Last updated 1 year ago

David Neto · @dneto
334 followers · 866 posts · Server mastodon.gamedev.place

I've updated the to use WGSL-specific syntax highlighting. Previously we were faking it with Rust highlighting, which was a decent approximation.

w3.org/TR/WGSL/

One tell-tale sign: in the code samples 'var' is now red like other keywords.

Backstory: I added WGSL syntax highlighting rules to Pygments 2.15, and that rolled into Bikeshed at the end of April.

#WGSL

Last updated 1 year ago

Jesus :amiga: · @jesus
35 followers · 93 posts · Server mastodon.gamedev.place

If you have ever struggled when starting to learn shaders, give a try.

It is not as industry standard as GLSL or HLSL, but the modern rust-style syntax makes it easy to learn and you will be applying the same math and techniques that you can then take back to the classic languages.

Combine it with Rust+wgpu+winit for a good introduction to rendering.

w3.org/TR/WGSL/

#WGSL #rustlang #gamedev

Last updated 1 year ago

David Neto · @dneto
316 followers · 708 posts · Server mastodon.gamedev.place

Was putting in the work with Typescript today. Some things still baffle me.
Waiting for the review, figure I'll learn something from it.

PR adds conformance tests for bitcast from f32. Annoying because of permitted behaviours for non normal numbers.

#WGSL

Last updated 1 year ago

Ghadeer Abou-Saleh · @gee8sh
40 followers · 114 posts · Server techhub.social

Speaking of recursive noise, I wish supported tail recursive functions. But I suppose a shading language is not meant to be too complicated to implement.

#WGSL

Last updated 1 year ago

Marc JESTIN — Happy Numeric · @mjhn
31 followers · 72 posts · Server piaille.fr

Vous pourrez parler pendant des heures : ne vaut pas avec et il en est TRÈS TRÈS LOIN.

Exemple : je viens de créer un deck spécial avec des colonnes de recherches en lien avec et : ça pête des résultats excellents et très intéressants pour produire des supports de QUALITÉ dans mon MediaWiki.

#mastodon #Twitter #tweetdeck #webgpu #WGSL #cqfd

Last updated 1 year ago

Marc JESTIN — Happy Numeric · @mjhn
31 followers · 71 posts · Server piaille.fr

Après ,
et des liens vers des ressources utiles.

WGSL est un acronyme qui signifie « WebGPU Shading Language ».

happynumeric.fr/mediawiki/inde

#webgpu #WGSL

Last updated 1 year ago

nnirror · @nnirror
119 followers · 216 posts · Server post.lurk.org

Now that WebGPU is out, I’m thinking about forking my live coding system Facet to do its computation in WGSL. I’m assuming it would be able to generate and modify Float32Arrays way faster than on the GPU than in the CPU in Node, where it’s currently running the computations.

I know it’s a pretty new development in the web tech space, but curious if anyone might had used WGSL for generating 1D Float32Arrays might have any advice for a noob like me that has never worked with shaders.

#WGSL #webgpu

Last updated 1 year ago

David Neto · @dneto
310 followers · 610 posts · Server mastodon.gamedev.place

A word of caution. The spec is structured and written to primarily be precise and concise.
It can be obtuse and dense. It's the legalese meant for implementors and developers on both sides of the API contract.

It is *not* meant as a tutorial, and it doesn't put the language in full context. Other folks will write those, and the best will take hold in the collective mindshare.

#WGSL

Last updated 1 year ago

David Neto · @dneto
310 followers · 610 posts · Server mastodon.gamedev.place

@mcc
Depending on your use case, consider using the SPIR-V to conversions in Tint and Naga, the Google and Mozilla WGSL compilers.
Highly useful but not officially production state.
Meant if you still want to stay with your original Shader authoring flow to SPIR-V
Unity is using Tint, and have been gracious enough to publish samples for testing.

github.com/Unity-Technologies/

#WGSL

Last updated 1 year ago

David Neto · @dneto
310 followers · 602 posts · Server mastodon.gamedev.place

syntax highlighting will be coming to VS Code soon.

I landed the support in monaco-editor a few days ago, and it's now in the 0.37.0 release.

Woohoo!

#WGSL

Last updated 1 year ago

David Neto · @dneto
309 followers · 574 posts · Server mastodon.gamedev.place

As it turns out, I didn't need yarn2. Yarn1 (classic yarn?) Was just fine.

This is for syntax highlighting in Monaco, the VSCode editor.

Took a while, but after staring hard at the sample sites I was able to piece together a workable flow. Then fought a few things that Monaco-editor does differently from the others. Had two puzzling bugs on my part, and found what I think is a Monaco bug. (Unicode patterns don't work?!)
By end of day I was mostly there.

#WGSL

Last updated 1 year ago

David Neto · @dneto
304 followers · 539 posts · Server mastodon.gamedev.place

I made a pygments lexer for

It was way easier than I expected.

Hopefully this will let us get *good* syntax highlighting for WGSL. (As opposed to kind of faking it by pretending it's rust or groovy)

github.com/pygments/pygments/p

#WGSL

Last updated 1 year ago

David Neto · @dneto
304 followers · 539 posts · Server mastodon.gamedev.place

The work resulted in bugfixes to WebGPU and the memory model tests in the WebGPU conformance test suite.

#webgpu #WGSL

Last updated 1 year ago

David Neto · @dneto
301 followers · 484 posts · Server mastodon.gamedev.place

@gee8sh

We also would like to unify almost all attribute parsing so it's one regular rule where all parameters are expressions. Similar goal: regularized parsing and independent analysis.

#WGSL

Last updated 1 year ago