I found a sample about how to run a HLSL code with DirectCompute.
https://code.msdn.microsoft.com/windowsdesktop/DirectCompute-Basic-Win32-7d5a7408
This is the HLSL script I want to run
It doesn't seem the same as the BasicCompute sample. First, the main function's name is called "main" instead of "CSMain". Second, it uses data types like float2, float3 and float4 while BasicCompute uses standard data types. So, is it the same or something else?
Will DirectCompute run this script or it has to be done through other means?