Support for more texture formats in RenderTarget::Image #6065
Labels
A-Rendering
Drawing game state to the screen
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
Currently, it is possible to render the view of a camera to a texture, by setting its target to
RenderTarget::Image
. To do this, the target texture has to be in the formatTextureFormat::Bgra8UnormSrgb
.I would like to use a different format like
Rgba32Float
for the target image, so that a pixel can contain values below the 256th percentile. As far as I know, WGPU already supportsTextureUsages::RENDER_ATTACHMENT
for most formats (incl.Rgba32Float
). Is there a reason why Bevy only supportsBgra8UnormSrgb
? And if so, is there a way to get around this requirement for special cases?The text was updated successfully, but these errors were encountered: