You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
342 B
Plaintext
16 lines
342 B
Plaintext
|
|
#include "Include/PlatformDefines.compute"
|
|
|
|
#pragma kernel CSArgsBufferDoubleInstanceCount
|
|
|
|
uniform RWStructuredBuffer<uint> argsBuffer;
|
|
uniform uint count;
|
|
|
|
[numthreads(GPUI_THREADS, 1, 1)]
|
|
void CSArgsBufferDoubleInstanceCount(uint2 id : SV_DispatchThreadID)
|
|
{
|
|
if (id.x >= count)
|
|
return;
|
|
|
|
argsBuffer[id.x * 5 + 1] *= 2;
|
|
} |