Closed pudnax closed 1 year ago
I can't think of a way to remove conversion functions in shader. I'll need to pass textures and match on texture views, but it forces to create bind groups each time. Mipmap creation is a bit better, but the whole merge request feels bikeshedy.
For now, it's just a draft to show current progress. I'm trying to figure out how conversions with texture views work and if is it possible to remove linear to srgb functions from shader.
Main work is going in this repo
Tests
Bgra8UnormSrgb
and render png image on different viewports. rows: ordinary drawThings are changing when I set surface format to
Bgra8Unorm
.Current blitter doesn't depend on the texture format and converts color spaces automatically.
Links