RenderTarget::Image
doesn't support Rgba8Unorm
and Bgra8Unorm
texture formats (non-srgb formats)
#15201
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
D-Modest
A "normal" level of difficulty; suitable for simple features or challenging fixes
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
Bevy version
0.14.2
[Optional] Relevant system information
If you cannot get Bevy to build or run on your machine, please include:
cargo --version
)cargo 1.81.0 (2dbb1af80 2024-08-20)
SystemInfo { os: "MacOS 14.1.1 ", kernel: "23.1.0", cpu: "Apple M1 Max", core_count: "10", memory: "64.0 GiB" }
If your bug is rendering-related, copy the adapter info that appears when you run Bevy.
What you did
Change image format from
Bgra8UnormSrgb
toRgba8Unorm
orBgra8Unorm
and run therender_to_texture
example:What went wrong
Example doesn't work.
Additional information
I saw PR #6380 that should fix this problem and it partially does fix it - I can set
R32Float
orRg32Float
and it works.Why do I want non-srgb texture format? Because I want to feed output image to a compute shader but those don't support srgb texture storages.
The text was updated successfully, but these errors were encountered: