macroquad icon indicating copy to clipboard operation
macroquad copied to clipboard

16 and 32 bit Textures

Open NHodgesVFX opened this issue 2 years ago • 1 comments

It seems at the moment only 8 bit textures are supported.

In miniquad the exposed texture formats

pub enum TextureFormat {
    RGB8,
    RGBA8,
    Depth,
    Alpha,
}

Would it be possible to have 16 and 32 bit textures as well?

I would like to use the higher bit depth to store arbitrary data for use with simulations or animations. HDR rendering also comes to mind.

NHodgesVFX avatar Sep 29 '23 17:09 NHodgesVFX

Its not implemented yet, but its very high on my priorities list.

The problem here - those expose TextureFormats are an intersection of texture formats supported by each possible target formats. Unfortunately 16/32 bit formats are not universally supported everywhere :(

not-fl3 avatar Sep 30 '23 04:09 not-fl3