Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
6 months ago
Unity has both
TextureFormat.ARGB32 and TextureFormat.RGBA32.The document says it's 8bit each channel in [0..1] range. But what are these formats exactly? 8bit is usually [0..255]. Do they just represent [0..255] divided by 255?
Also why are there both ARGB32 and RGBA32? When should I use which?
Dec 1, 2022 at 19:17
13 3 3 bronze badges
log in to answer this question.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only
RenderTextureFormat.Default's documentation saying "Typically this is ARGB32 format", in a quick test I've just done the default I got on Windows was
R8G8B8A8_SRGB(ie. RGBA order). So it could simply be that this "typically" line is misleading, not that there's any real pessimization in the API. Maybe what the doc-writer meant was "this will be a format with R G B and A channels at 8 bits per channel", and didn't mean to specify ordering, since RenderTextureFormat has no RGBA32 member to link to. \$\endgroup\$