Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

unity3d 5.11F1 StructuredBuffer<float2> bug...

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

  1. yty

    yty

    Joined:
    Aug 10, 2009
    Posts:
    82
    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