This commit is contained in:
2025-11-28 23:13:44 +05:30
commit a3a8e79709
7360 changed files with 1156074 additions and 0 deletions

View File

@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++]
"FileExtensions"="cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;cg"

View File

@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File Extensions\.cg]
@="{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}"

View File

@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Languages\File Extensions\.cg]
@="{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}"

View File

@ -0,0 +1,49 @@
Want pretty syntax highlighting when editing your CG files in Visual Studio?
Heres how:
---
Visual Studio 6:
1. Copy the usertype.dat file to the Visual Studio bin directory (typically C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin).
2. Start regedit (Start -> Run -> regedit) and go to HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++
3. Add cg to the end of the FileExtensions key (separated with a semicolon)
4. Restart Visual Studio and your shaders should now have syntax highlighting
NOTE: You can use the install_highlighting.reg file to simplify steps 2-3. Simply double-click on the file and press OK when prompted.
---
Visual Studio .Net / 7.1:
1. Copy the usertype.dat file to your Microsoft Visual Studio .Net\Common7\IDE folder
2. Open up the registry editor and go to the following location - HKLM\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File Extensions.
3. Copy the default value from the .cpp key.
4. Create a new key under the File Extensions with the name of .cg
5. Paste the value you just copied into the default value
6. Restart Visual Studio and your shaders should now have syntax highlighting
NOTE: You can use the install_highlighting_vs7.reg file to simplify the above steps. Simply double-click on the file and press OK when prompted.
---
Visual Studio 2005 / 8:
1. Copy the usertype.dat file to your Microsoft Visual Studio 8\Common7\IDE folder
2. Open up the registry editor and go to the following location - HKLM\SOFTWARE\Microsoft\VisualStudio\8.0\Languages\File Extensions.
3. Copy the default value from the .cpp key.
4. Create a new key under the File Extensions with the name of .cg
5. Paste the value you just copied into the default value
6. Restart Visual Studio and your shaders should now have syntax highlighting
NOTE: You can use the install_highlighting_vs8.reg file to simplify the above steps. Simply double-click on the file and press OK when prompted.

View File

@ -0,0 +1,379 @@
bool
const
static
uniform
varying
register
in
inout
interface
out
void
do
while
for
if
else
typedef
struct
discard
return
fixed
fixed1
fixed2
fixed3
fixed4
half
half1
half2
half3
half4
int1
int2
int3
int4
float
float1
float2
float3
float4
float1x1
float1x2
float1x3
float1x4
float2x1
float2x2
float2x3
float2x4
float3x1
float3x2
float3x3
float3x4
float4x1
float4x2
float4x3
float4x4
_SEQ
_SGE
_SGT
_SLE
_SLT
_SNE
abs
acos
asin
atan
atan2
ceil
clamp
cos
cosh
cross
ddx
ddy
degrees
dot
exp
exp2
floor
fmod
frexp
frac
isfinite
isinf
isnan
ldexp
log
log2
log10
max
min
mix
mul
lerp
modf
noise
pow
radians
round
rsqrt
sign
sin
sinh
smoothstep
step
sqrt
tan
tanh
distance
fresnel
length
normalize
reflect
reflectn
refract
refractn
tex1D
f1tex1D
f2tex1D
f3tex1D
f4tex1D
h1tex1D
h2tex1D
h3tex1D
h4tex1D
x1tex1D
x2tex1D
x3tex1D
x4tex1D
tex1Dbias
tex2Dbias
tex3Dbias
texRECTbias
texCUBEbias
tex1Dlod
tex2Dlod
tex3Dlod
texRECTlod
texCUBElod
tex1Dproj
f1tex1Dproj
f2tex1Dproj
f3tex1Dproj
f4tex1Dproj
h1tex1Dproj
h2tex1Dproj
h3tex1Dproj
h4tex1Dproj
x1tex1Dproj
x2tex1Dproj
x3tex1Dproj
x4tex1Dproj
tex2D
f1tex2D
f2tex2D
f3tex2D
f4tex2D
h1tex2D
h2tex2D
h3tex2D
h4tex2D
x1tex2D
x2tex2D
x3tex2D
x4tex2D
tex2Dproj
f1tex2Dproj
f2tex2Dproj
f3tex2Dproj
f4tex2Dproj
h1tex2Dproj
h2tex2Dproj
h3tex2Dproj
h4tex2Dproj
x1tex2Dproj
x2tex2Dproj
x3tex2Dproj
x4tex2Dproj
tex3D
f1tex3D
f2tex3D
f3tex3D
f4tex3D
h1tex3D
h2tex3D
h3tex3D
h4tex3D
x1tex3D
x2tex3D
x3tex3D
x4tex3D
tex3Dproj
f1tex3Dproj
f2tex3Dproj
f3tex3Dproj
f4tex3Dproj
h1tex3Dproj
h2tex3Dproj
h3tex3Dproj
h4tex3Dproj
x1tex3Dproj
x2tex3Dproj
x3tex3Dproj
x4tex3Dproj
tex1CUBE
f1texCUBE
f2texCUBE
f3texCUBE
f4texCUBE
h1texCUBE
h2texCUBE
h3texCUBE
h4texCUBE
x1texCUBE
x2texCUBE
x3texCUBE
x4texCUBE
texCUBEproj
f1texCUBEproj
f2texCUBEproj
f3texCUBEproj
f4texCUBEproj
h1texCUBEproj
h2texCUBEproj
h3texCUBEproj
h4texCUBEproj
x1texCUBEproj
x2texCUBEproj
x3texCUBEproj
x4texCUBEproj
f1texCUBE
f2texCUBE
f3texCUBE
f4texCUBE
h1texCUBE
h2texCUBE
h3texCUBE
h4texCUBE
x1texCUBE
x2texCUBE
x3texCUBE
x4texCUBE
texRECT
f1texRECT
f2texRECT
f3texRECT
f4texRECT
h1texRECT
h2texRECT
h3texRECT
h4texRECT
x1texRECT
x2texRECT
x3texRECT
x4texRECT
texRECTproj
f1texRECTproj
f2texRECTproj
f3texRECTproj
f4texRECTproj
h1texRECTproj
h2texRECTproj
h3texRECTproj
h4texRECTproj
x1texRECTproj
x2texRECTproj
x3texRECTproj
x4texRECTproj
f1texRECT
f2texRECT
f3texRECT
f4texRECT
h1texRECT
h2texRECT
h3texRECT
h4texRECT
x1texRECT
x2texRECT
x3texRECT
x4texRECT
texcompare2D
f1texcompare2D
f1texcompare2D
f1texcompare2D
h1texcompare2D
h1texcompare2D
h1texcompare2D
x1texcompare2D
x1texcompare2D
x1texcompare2D
pack_2half
unpack_2half
pack_4clamp1s
unpack_4clamp1s
application2vertex
vertex2fragment
HPOS
POSITION
PSIZ
WPOS
COLOR
COLOR0
COLOR1
COLOR2
COLOR3
COL0
COL1
BCOL0
BCOL1
FOGP
FOGC
NRML
NORMAL
TEXCOORD0
TEXCOORD1
TEXCOORD2
TEXCOORD3
TEXCOORD4
TEXCOORD5
TEXCOORD6
TEXCOORD7
TEX0
TEX1
TEX2
TEX3
TEX4
TEX5
TEX6
TEX7
DEPR
DEPTH
ATTR0
ATTR1
ATTR2
ATTR3
ATTR4
ATTR5
ATTR6
ATTR7
ATTR8
ATTR9
ATTR10
ATTR11
ATTR12
ATTR13
ATTR14
ATTR15
sincos
POINT
POINT_OUT
LINE
LINE_ADJ
LINE_OUT
TRIANGLE_OUT
TRIANGLE
TRIANGLE_ADJ
arbfp1
arbvp1
glslv
glslf
gp4vp
gp4gp
gp4fp
fp20
fp30
fp40
vp20
vp30
vp40
sampler1D
sampler1DARRAY
sampler2D
sampler2DARRAY
sampler3D
samplerCUBE
samplerRECT
technique
pass
compile
trunc