Hiding kernel source or Offline compilation in Direct Compute
For example:
- In CUDA, kernel source will be built into .exe and others can't view the kernel source.
- In opencl, for first execution, kernel source in .cl file is compiled using clcreateprogramwithsource and program binaries can be stored and from next execution we can do offline compilation using clcreateprogramwithbinary.
My goal is to hide the kernel source code in .hlsl file from others and build the kernel source into final binary in Direct Compute.
I looked at sample in below link: https://github.com/walbourn/directx-sdk-samples/tree/main/BasicCompute11
This sample only explains online compilation technique.