Created
December 24, 2015 08:58
-
-
Save SoulFireMage/dffbbd8d8f7992db65d2 to your computer and use it in GitHub Desktop.
Part of DXPlay.fs showing the bit you code to make shapes :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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