common-shaders icon indicating copy to clipboard operation
common-shaders copied to clipboard

crt-aperture.cgp compiling error

Open MarioMario456 opened this issue 5 years ago • 2 comments

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 "="

MarioMario456 avatar Nov 04 '19 19:11 MarioMario456

.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.

VelocityRa avatar Nov 04 '19 20:11 VelocityRa

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

hizzlekizzle avatar Nov 05 '19 02:11 hizzlekizzle