Closed jdah closed 1 month ago
Thanks for the PR, I'll give it a whirl now. Do you have already code working with the change? I wonder if I have any accidential hardwired code paths in the validation layer which assume that float textures are not filterable (but I'll try to find out while testing).
Ok, I need to do a couple of changes in sokol_app.h (I'll do this in my intermediate merge-branch).
Basically extending this code block with optional features:
...while at it I also fixed the BC vs ETC2 detection (both are available on Apple Silicon, the 'if-else' doesn't make sense), and the missing ASTC check.
I'll do a couple of filterable-float checks next and then merge.
Ok merged, many thanks! As I wrote above, I also fixed the feature detection in sokol_app.h, and update the changelog.
Marks R32F, RG32F, and RGBA32F as filterable on wgpu backend by checking feature flag (according to the table here https://gpuweb.github.io/gpuweb/#texture-format-caps). Seems to be OK-widely supported as well (https://web3dsurvey.com/webgpu/features/float32-filterable), though not sure if that's a concern.