Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

unity3d 5.11F1 StructuredBuffer<float2> bug...

Discussion in '5.2 Beta' started by yty, Aug 11, 2015.

  1. yty


    Aug 10, 2009
    As follows, using StructuredBuffer <float2>, sampling can not be used tex2D...

    StructuredBuffer<float2> _ColorCoords;

    _ColorCoords[0].x = 0;
    _ColorCoords[0].y = 0;
    tex2D (_ColorTex,float2(_ColorCoords[0].x,_ColorCoords[0].y)); //bug The result is transparent