Initial xtask check-in
This commit is contained in:
11
shader/hello-world.slang
Normal file
11
shader/hello-world.slang
Normal file
@ -0,0 +1,11 @@
|
||||
StructuredBuffer<float> buffer0;
|
||||
StructuredBuffer<float> buffer1;
|
||||
RWStructuredBuffer<float> result;
|
||||
|
||||
[shader("compute")]
|
||||
[numthreads(1,1,1)]
|
||||
void computeMain(uint3 threadId : SV_DispatchThreadID)
|
||||
{
|
||||
uint index = threadId.x;
|
||||
result[index] = buffer0[index] + buffer1[index];
|
||||
}
|
Reference in New Issue
Block a user