blob: be723143231fde868ff1fc4266cbe9e4d9cc0f86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import "precompiled-module-imported";
using namespace ns;
// Main entry-point.
[shader("compute")]
[numthreads(4, 1, 1)]
void computeMain(
uint3 sv_dispatchThreadID : SV_DispatchThreadID,
uniform RWStructuredBuffer <float> buffer)
{
buffer[sv_dispatchThreadID.x] = helperFunc() + helperFunc1();
}
|