Load an initial module

This commit is contained in:
2024-12-30 20:09:11 -05:00
commit 9734478b9a
10 changed files with 421 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// hello-world.slang
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];
}