Search Unity

How to Compile Shader Program into Native C

Discussion in 'Shaders' started by DoPie, Aug 14, 2014.

  1. DoPie

    DoPie

    Joined:
    Jun 20, 2013
    Posts:
    64
    Hi,

    I would like to ask a question, if there's a possibilities compile to shader program in unity3d into Native C or else C++??

    Thanks in Advance!
     
  2. Farfarer

    Farfarer

    Joined:
    Aug 17, 2010
    Posts:
    2,249
    That wouldn't really be useful or efficient.

    What are you trying to achieve?
     
  3. shaderop

    shaderop

    Joined:
    Nov 24, 2010
    Posts:
    942
    That makes as much sense as wanting to compile HTML into assembler or making a square circle.
     
  4. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    Cg, although based on C, is usually not valid C. Perhaps you could explain more about what you want, and what you mean by "Native". It's quite likely that you are making some assumptions about how things work, and some of them could be incorrect.