FNA3D icon indicating copy to clipboard operation
FNA3D copied to clipboard

Add R8_UNORM and R16_UNORM extended surface formats

Open kg opened this issue 1 year ago • 4 comments

Tested on OpenGL, D3D11 and SDL_GPU.

kg avatar Dec 24 '24 22:12 kg

You may ask "Why do we need R8_UNORM when Alpha8 exists?" And the answer is that Alpha8 behaves differently on each backend right now, but R8_UNORM as Red is consistent.

kg avatar Dec 24 '24 22:12 kg

If the behavior is different that's likely a bug, unless the APIs define them differently - I would definitely prefer bugs first and extensions dead last, rather than the other way around.

flibitijibibo avatar Dec 25 '24 01:12 flibitijibibo

I looked into fixing Alpha8 before and couldn't figure it out. I'd be happy to pair with someone who wants to look into it I guess? It's also a problem in that Alpha8 RTs don't work in GL, while R8/R16 ones do.

kg avatar Dec 25 '24 01:12 kg

Blocked by https://github.com/MoonsideGames/dav1dfile/issues/4

flibitijibibo avatar Dec 28 '24 15:12 flibitijibibo