exrook
exrook
How about: ``` impl ErrorHandler for Vec { // ... } impl ErrorHandler for &mut Vec { // ... } impl ErrorHandler for () { // do nothing } fn...
Sure, here's some benchmarks with criteron on my Ryzen 2700X desktop. I also did some preliminary benchmarks on my ARM phone with similar results, although with a slight (40us ->...
mobile aarch64 benchmarks: concurrent  contended  Note the regression below! I'd appreciate hearing any theories on why this may be happening lock_unlock 
Looking into how the [validation layers](https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/main/layers/gpu_validation/debug_printf.cpp#L80) [implement this](https://github.com/KhronosGroup/SPIRV-Tools/blob/4f014aff9c653e5e16de1cc5f7130e99e02982e5/source/opt/inst_debug_printf_pass.cpp), there's no reason we couldn't universally support a feature like this in a similar way with a pass on the naga IR...
> I believe the minimal functionality in WGSL you'd need in order to support this in user space is just a string type. As soon as you have a string...
I'll update this tonight :)
I've decided to provide one feature bit per shader stage to require support for subgroup operations. i.e. we'll have: - `SUBGROUP_COMPUTE` - `SUBGROUP_FRAGMENT` - `SUBGROUP_VERTEX` Each feature bit requires support...
Interesting that the mac CI is now [failing with a shader compiler error](https://github.com/gfx-rs/wgpu/actions/runs/6630999055/job/18013581436?pr=4190#step:11:387) on MoltenVK after this reorganization: ``` [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Compute pipeline compile failed (Error code 3): Compiler encountered...
Forcing MoltenVK debug on when running the test gets it to [print out the translated MSL](https://github.com/gfx-rs/wgpu/actions/runs/6631342260/job/18014668664?pr=4190#step:11:5301), which seems to compile fine when [pasted into shader-playground](https://shader-playground.timjones.io/66a81aa7680c07d20ca2f4b06c565a1a), so I've got no idea...
I'll look into the DX12 issues when I get the chance, though it may be a while before I can get a windows machine set up to test things.