Skip to content

sokol_gfx.h: SG_PIXELFORMAT_R16F (compute) support as a feature? #1473

@exavi

Description

@exavi

Hi there!

Would you consider allowing SG_PIXELFORMAT_R16F as a valid compute destination for supported backends? (I think it might be another case of it being restricted by WebGPU too)

It might seem like an obscure format but even a basic SSAO implementation could use it (my current use case 😅) otherwise at the moment one would have to use R32F (which works but it's a bit of a waste).

If you would consider it I'd be happy to start a PR and add support for the backends I can test (Metal, OpenGL, Vulkan) this time looking at how you set up the INT10_N2 feature flag, to add the feature flag too... to reduce work on your end. 😄

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions