David A Roberts

Results 177 comments of David A Roberts

So it looks like that means they will now automatically rename `assert` to a unique token before generating the Metal shader code, which is the fix I was hoping for,...

It should be trying to fetch those from the website, eg https://compute.toys/textures/london.jpg If you want a local copy of those files, they can be found in https://github.com/compute-toys/compute.toys/tree/master/public/textures We don't currently...

The preprocessor already defines SCREEN_WIDTH and SCREEN_HEIGHT https://github.com/compute-toys/wgpu-compute-toy/blob/master/src/lib.rs#L470-L471 Perhaps that could be documented better. Evaluating constant expressions in the preprocessor would be handy, ideally we could use some library for...

Yeah, known issue but it's a tricky one to fix, it's due to React triggering updates as it loads all the components. Maybe we could suppress shader compiles until the...

I've started porting the engine to typescript in https://github.com/compute-toys/compute.toys/pull/218. It's not yet complete enough to run every shader on the site, but many of them work already. (I am getting...

With fragment shaders the main limitation is that (roughly speaking) each thread is associated with a specific pixel, so your code has to fit into the form of a function...

Native apps would be very cool. Chrome on Android can kind of run the website, but interactivity isn't great, so would be very cool if you can make something better....

Nice! Where do I find the code to have a play with it? Yeah, have a look at e.g. https://compute.toys/view/1825/wgsl and https://compute.toys/view/1825/json > Could ray marching shaders benefit from compute...

Server-side auth needs to be replaced with https://supabase.com/docs/guides/auth/server-side/nextjs