Jasper St. Pierre

Results 159 comments of Jasper St. Pierre
trafficstars

Yes, I'm responding to your comment asking if you needed to keep things in vec3's. If you used a custom structure as in your last example, it would not affect...

I'd say that swizzles are helpful for common simple coordinate transforms. There are often symmetric transforms that can be shared between X and Y, but not Z, for instance, and...

Here's a much simpler version of the same thing. ChatGPT really overcomplicated it. ```js function getUsageName(obj, id) { let ret = ``; for (const key in obj) if (obj[key] &...

* Mipmaps need to be filtered differently depending on whether they are used as wrap or clamp (you would want to filter edge pixels differently) * Compressed textures cannot have...

I agree with including a blit image command, though I wouldn't encourage using it in place of offline mipmap generation if possible.

I would rather not have browser-implemented helper libraries, unless they're all guaranteed to be identical (and this is a *very* tricky thing to ensure). There isn't a one-size-fits-all solution, and...

As much as I like this feature, I think it would make sense to defer until the HLSL team has evaluated such a feature ( filed as issue https://github.com/microsoft/hlsl-specs/issues/70 )....

While I don't want to push too much R&D work into WebGPU, I do think that a good number of people who would want subgroups might be happier with operations...

SPIR-V supports this with the `EarlyFragmentTests` module flag. HLSL/DX12 supports an `earlydepthstencil` in their shaders. Metal supposedly has a `[[early_fragment_tests]]` attribute according to the [shading language spec](https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf), but there's [some](https://twitter.com/p1xelcoder/status/720711546138001408)...

> because in Vulkan an SSBO has to conform to the std430 layout Hopefully not for much longer! https://renderdoc.org/vkspec_chunked/chap41.html#VK_EXT_scalar_block_layout