Advertisement
_Dunno_

Untitled

Aug 22nd, 2024
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma kernel CSMain
  2. RWStructuredBuffer<int> Input;
  3. RWStructuredBuffer<int> Output;
  4.  
  5. #define CHANGE_ME_JUST_FOR_RECOMPILE 1
  6.  
  7. [numthreads(1,1,1)]
  8. void CSMain (uint3 id : SV_DispatchThreadID)
  9. {
  10.     Output[id.x] = Input[id.x];
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement