Search Unity

Texture2DArray and ASTC RGBA not working?

Discussion in 'General Graphics' started by hungrybelome, Oct 18, 2018.

  1. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    336
    On Unity 2018.2.12f1 I cannot seem to make a proper ASTC RGBA Texture2DArray. Even when passing ASTC RGBA as the format, the Texture2DArrray results in just an ASTC RGB format.

    Here is my test code:
    Code (CSharp):
    1.  
    2. var texture2DArray = new Texture2DArray(512, 512, 1, TextureFormat.ASTC_RGBA_4x4, true, false);
    3. Debug.Log(texture2DArray.format); // Prints ASTC_RGB_4x4, instead of RGBA
    4.  
    Could anyone please try this as well to confirm?

    Thank you!
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,028
    Hi!
    Please submit a bug report.
     
  3. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    336
    Can you run the code on your machine and confirm that you are seeing the bug I am seeing?

    If so, I will submit a proper report. First I want to make sure other people are actually experiencing the same thing.
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,028
    Even if I don't, this will not prove anything. Your configuration might be different from mine.
    When you make a bug report, the project settings and all the other stuff that might influence it gets included.
     
  5. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    336
    Can you at least try it and let me know as a sanity check? I don't want to file a bug report and waste the Unity devs` time unless I am sure it is not caused by my own error.

    *EDIT*
    Just submitted my bug report with a project running my test code.
     
    Last edited: Oct 19, 2018
  6. andywatts

    andywatts

    Joined:
    Sep 19, 2015
    Posts:
    112
    @hungrybelome
    Can you link to your bug report?
    I want to +1 and couldn't find it in the issue tracker.
     
  7. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    336