libretro / common-shaders

Collection of commonly used Cg shaders. These shaders are usable by either HLSL and/or Cg runtime compilers. The cg2glsl script will translate most of these into GLSL shaders.
http://www.libretro.com
1.05k stars 253 forks source link

crt-aperture.cgp compiling error #155

Open MarioMario456 opened 5 years ago

MarioMario456 commented 5 years ago

I try to use the Nvidia Cg compiler to make crt-aperture.cgp work on emulators that don't support uncompiled shaders. But, it always results in a error no matter what I do (I am NOT a programmer)

Here's the log:

C:\Users\[CENSORED]\Documents\Emulators\Snes9x\Shaders\crt>cgc -o "crt-aperture.glsl" "crt-aperture.cgp"
crt-aperture.cgp
crt-aperture.cgp(1) : error C0000: syntax error, unexpected '=', expecting "::" at token "="
VelocityRa commented 5 years ago

.cgp files are shader presets, not shaders. Their format is described here under "Cg meta-shader format". The extension of Cg shaders is .cg.

Not sure what you mean by "uncompiled shaders". If the emulator does not itself have support for libretro's shader preset system (described in the link above) which it probably doesn't, then these will not work.

hizzlekizzle commented 5 years ago

AFAIK, snes9x has support for all of the libretro shader formats. I would suggest switching to slang shaders instead of Cg/p anyway.