Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Load image data without uploading to gpu

Discussion in 'Editor & General Support' started by Edgaras-Randis, Apr 24, 2015.

  1. Edgaras-Randis

    Edgaras-Randis

    Joined:
    Jul 8, 2014
    Posts:
    20
    So, this method: http://docs.unity3d.com/ScriptReference/Texture2D.LoadImage.html

    states: "Texture will be uploaded to the GPU automatically; there's no need to call Apply."

    I don't need to upload it to the gpu memory because there's gonna be further manipulation of pixel data.

    And then there is: http://docs.unity3d.com/ScriptReference/Texture2D.LoadRawTextureData.html

    which is out of the question, because you need to know dimensions of texture and format.

    And the image is user uploaded, might even be unsupported device texture size, that's why I need to load data first for further processing without uploading to the gpu, but it seems there's no way?