Hi,
I am making a game engine with multiple rendering interfaces (currently only DX10 and OpenGL 3) and am trying to integrate CGFX into my pipeline. I have looked at the docs for CGFX but cannot seem to find anything that suits my needs.
What I am trying to do is compile a CGFX file to HLSL byte code as I can then just use my DX10Effect class to load the bytecode to a DX10 effect and DX will be happy. Looking at the docs for CGFX it seems I cannot get the DX10 bytecode from a CGFX effect. This means I will have to use CG to do all the effect technique and parameter work instead of DX itself.
Does anyone know if it is possible to get the DX10 bytecode from a CGFX effect?
Thanks.