Search Unity

difference between setfloats and structuredbuffer<float3>?

Discussion in 'Shaders' started by mahdiii, Apr 27, 2017.

  1. mahdiii

    mahdiii

    Joined:
    Oct 30, 2014
    Posts:
    856
    I would like to know the difference between computeshader.setfloats and structuredbuffer<float3>
    thanks in advance
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    SetFloats is going to pass those values as a Constant Buffer rather than a StructeredBuffer.