Skip to content

Instantly share code, notes, and snippets.

@SoulFireMage
Created December 24, 2015 08:58
Show Gist options
  • Save SoulFireMage/dffbbd8d8f7992db65d2 to your computer and use it in GitHub Desktop.
Save SoulFireMage/dffbbd8d8f7992db65d2 to your computer and use it in GitHub Desktop.
Part of DXPlay.fs showing the bit you code to make shapes :)
let computeShader =
let code = @"
RWTexture2D<float4> Output;
[numthreads(32, 32, 1)]
void main( uint3 threadID : SV_DispatchThreadID )
{
for (int i = 1.0f; i <= 1280.0f; i+=320.0f){
Output[threadID.xy] = float4(threadID.xy / i, 0, 1);
}
}
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment