Search Unity

will compressed texture be uncompressed into memory

Discussion in 'Shaders' started by Lulucifer, Oct 18, 2014.

  1. Lulucifer

    Lulucifer

    Joined:
    Jul 8, 2012
    Posts:
    358
    will compressed texture be uncompressed into memory if the compressed format can't be supported by the hardware?
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    Well, that is what I would expect and it is mentioned here:
    "Although Unity Android does support DXT/PVRTC/ATC textures, Unity will decompress the textures into RGB(A) format at runtime if those compression methods are not supported by the particular device in use."

    Though that's specific for Android, I expect it to be the general rule.
     
    Lulucifer likes this.
  3. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    I'm pretty sure that Android is the only platform where there isn't a standard for texture compression, so you shouldn't have this problem anywhere else.
     
    Lulucifer likes this.
  4. Dolkar

    Dolkar

    Joined:
    Jun 8, 2013
    Posts:
    576
    Having a compressed texture in memory in a format the hardware can't decode makes it unreadable. So my guess is yes, it will be either uncompressed, or compressed in another, supported format.