You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
251 B
13 lines
251 B
#pragma kernel CSMain
|
|
|
|
RWStructuredBuffer<float> resultBuffer;
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void CSMain(uint3 id : SV_DispatchThreadID)
|
|
{
|
|
// Fill the first four values with 1
|
|
for (int i = 0; i < 4; i++)
|
|
{
|
|
resultBuffer[i] = 1.0f;
|
|
}
|
|
}
|