StructuredBuffer buffer0; StructuredBuffer buffer1; RWStructuredBuffer result; import rng; [shader("compute")] [numthreads(1,1,1)] void computeMain(uint3 threadId : SV_DispatchThreadID) { Xoroshiro128Plus generator = {1, 2}; for (var i = 0; i < 10; i++) { result[i] = generator.next(); } }