Skip to content

Inconsistent results between R8_UNORM and RGBA #557

Open
@jandk

Description

@jandk

Hello,

I'm writing a library to decompress BCn textures, and while getting reference from BC4S by decoding through texconv, I noticed the values are not the same between R8_UNORM and RGBA.

Looking at the code it seems that for R8G8B8A8_UNORM you do add the 0.5/255.0 bias, but not for R8_UNORM.

Is this how it's supposed to be, or is this an issue? I couldn't find anything in the documentation, maybe you could provide more insight?

Greetings
Jan

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions