3796 lines
146 KiB
Lua
3796 lines
146 KiB
Lua
--[[// cg | Cg runtime
|
|
typedef int CGbool;
|
|
typedef struct _CGcontext *CGcontext;
|
|
typedef struct _CGprogram *CGprogram;
|
|
typedef struct _CGparameter *CGparameter;
|
|
typedef struct _CGobj *CGobj;
|
|
typedef struct _CGbuffer *CGbuffer;
|
|
typedef struct _CGeffect *CGeffect;
|
|
typedef struct _CGtechnique *CGtechnique;
|
|
typedef struct _CGpass *CGpass;
|
|
typedef struct _CGstate *CGstate;
|
|
typedef struct _CGstateassignment *CGstateassignment;
|
|
typedef struct _CGannotation *CGannotation;
|
|
typedef void *CGhandle;
|
|
|
|
typedef enum
|
|
{
|
|
CG_BEHAVIOR_UNKNOWN = 0,
|
|
CG_BEHAVIOR_LATEST = 1, /* latest behavior supported at runtime */
|
|
CG_BEHAVIOR_2200 = 1000, /* default behavior */
|
|
CG_BEHAVIOR_3000 = 2000,
|
|
CG_BEHAVIOR_CURRENT = CG_BEHAVIOR_3000 /* latest behavior supported at compile time */
|
|
} CGbehavior;
|
|
|
|
typedef enum
|
|
{
|
|
CG_UNKNOWN_TYPE = 0,
|
|
CG_ARRAY = 2,
|
|
CG_STRING = 1135,
|
|
CG_STRUCT = 1,
|
|
CG_TYPELESS_STRUCT = 3,
|
|
CG_TEXTURE = 1137,
|
|
CG_PIXELSHADER_TYPE = 1142,
|
|
CG_PROGRAM_TYPE = 1136,
|
|
CG_VERTEXSHADER_TYPE = 1141,
|
|
CG_TYPE_START_ENUM = 1024,
|
|
CG_SAMPLER = 1143,
|
|
CG_SAMPLER1D = 1065,
|
|
CG_SAMPLER1DARRAY = 1138,
|
|
CG_SAMPLER1DSHADOW = 1313,
|
|
CG_SAMPLER2D = 1066,
|
|
CG_SAMPLER2DARRAY = 1139,
|
|
CG_SAMPLER2DSHADOW = 1314,
|
|
CG_SAMPLER3D = 1067,
|
|
CG_SAMPLERBUF = 1144,
|
|
CG_SAMPLERCUBE = 1069,
|
|
CG_SAMPLERCUBEARRAY = 1140,
|
|
CG_SAMPLERRECT = 1068,
|
|
CG_SAMPLERRECTSHADOW = 1315,
|
|
CG_BOOL = 1114,
|
|
CG_BOOL1 = 1115,
|
|
CG_BOOL2 = 1116,
|
|
CG_BOOL3 = 1117,
|
|
CG_BOOL4 = 1118,
|
|
CG_BOOL1x1 = 1119,
|
|
CG_BOOL1x2 = 1120,
|
|
CG_BOOL1x3 = 1121,
|
|
CG_BOOL1x4 = 1122,
|
|
CG_BOOL2x1 = 1123,
|
|
CG_BOOL2x2 = 1124,
|
|
CG_BOOL2x3 = 1125,
|
|
CG_BOOL2x4 = 1126,
|
|
CG_BOOL3x1 = 1127,
|
|
CG_BOOL3x2 = 1128,
|
|
CG_BOOL3x3 = 1129,
|
|
CG_BOOL3x4 = 1130,
|
|
CG_BOOL4x1 = 1131,
|
|
CG_BOOL4x2 = 1132,
|
|
CG_BOOL4x3 = 1133,
|
|
CG_BOOL4x4 = 1134,
|
|
CG_CHAR = 1166,
|
|
CG_CHAR1 = 1167,
|
|
CG_CHAR2 = 1168,
|
|
CG_CHAR3 = 1169,
|
|
CG_CHAR4 = 1170,
|
|
CG_CHAR1x1 = 1171,
|
|
CG_CHAR1x2 = 1172,
|
|
CG_CHAR1x3 = 1173,
|
|
CG_CHAR1x4 = 1174,
|
|
CG_CHAR2x1 = 1175,
|
|
CG_CHAR2x2 = 1176,
|
|
CG_CHAR2x3 = 1177,
|
|
CG_CHAR2x4 = 1178,
|
|
CG_CHAR3x1 = 1179,
|
|
CG_CHAR3x2 = 1180,
|
|
CG_CHAR3x3 = 1181,
|
|
CG_CHAR3x4 = 1182,
|
|
CG_CHAR4x1 = 1183,
|
|
CG_CHAR4x2 = 1184,
|
|
CG_CHAR4x3 = 1185,
|
|
CG_CHAR4x4 = 1186,
|
|
CG_DOUBLE = 1145,
|
|
CG_DOUBLE1 = 1146,
|
|
CG_DOUBLE2 = 1147,
|
|
CG_DOUBLE3 = 1148,
|
|
CG_DOUBLE4 = 1149,
|
|
CG_DOUBLE1x1 = 1150,
|
|
CG_DOUBLE1x2 = 1151,
|
|
CG_DOUBLE1x3 = 1152,
|
|
CG_DOUBLE1x4 = 1153,
|
|
CG_DOUBLE2x1 = 1154,
|
|
CG_DOUBLE2x2 = 1155,
|
|
CG_DOUBLE2x3 = 1156,
|
|
CG_DOUBLE2x4 = 1157,
|
|
CG_DOUBLE3x1 = 1158,
|
|
CG_DOUBLE3x2 = 1159,
|
|
CG_DOUBLE3x3 = 1160,
|
|
CG_DOUBLE3x4 = 1161,
|
|
CG_DOUBLE4x1 = 1162,
|
|
CG_DOUBLE4x2 = 1163,
|
|
CG_DOUBLE4x3 = 1164,
|
|
CG_DOUBLE4x4 = 1165,
|
|
CG_FIXED = 1070,
|
|
CG_FIXED1 = 1092,
|
|
CG_FIXED2 = 1071,
|
|
CG_FIXED3 = 1072,
|
|
CG_FIXED4 = 1073,
|
|
CG_FIXED1x1 = 1074,
|
|
CG_FIXED1x2 = 1075,
|
|
CG_FIXED1x3 = 1076,
|
|
CG_FIXED1x4 = 1077,
|
|
CG_FIXED2x1 = 1078,
|
|
CG_FIXED2x2 = 1079,
|
|
CG_FIXED2x3 = 1080,
|
|
CG_FIXED2x4 = 1081,
|
|
CG_FIXED3x1 = 1082,
|
|
CG_FIXED3x2 = 1083,
|
|
CG_FIXED3x3 = 1084,
|
|
CG_FIXED3x4 = 1085,
|
|
CG_FIXED4x1 = 1086,
|
|
CG_FIXED4x2 = 1087,
|
|
CG_FIXED4x3 = 1088,
|
|
CG_FIXED4x4 = 1089,
|
|
CG_FLOAT = 1045,
|
|
CG_FLOAT1 = 1091,
|
|
CG_FLOAT2 = 1046,
|
|
CG_FLOAT3 = 1047,
|
|
CG_FLOAT4 = 1048,
|
|
CG_FLOAT1x1 = 1049,
|
|
CG_FLOAT1x2 = 1050,
|
|
CG_FLOAT1x3 = 1051,
|
|
CG_FLOAT1x4 = 1052,
|
|
CG_FLOAT2x1 = 1053,
|
|
CG_FLOAT2x2 = 1054,
|
|
CG_FLOAT2x3 = 1055,
|
|
CG_FLOAT2x4 = 1056,
|
|
CG_FLOAT3x1 = 1057,
|
|
CG_FLOAT3x2 = 1058,
|
|
CG_FLOAT3x3 = 1059,
|
|
CG_FLOAT3x4 = 1060,
|
|
CG_FLOAT4x1 = 1061,
|
|
CG_FLOAT4x2 = 1062,
|
|
CG_FLOAT4x3 = 1063,
|
|
CG_FLOAT4x4 = 1064,
|
|
CG_HALF = 1025,
|
|
CG_HALF1 = 1090,
|
|
CG_HALF2 = 1026,
|
|
CG_HALF3 = 1027,
|
|
CG_HALF4 = 1028,
|
|
CG_HALF1x1 = 1029,
|
|
CG_HALF1x2 = 1030,
|
|
CG_HALF1x3 = 1031,
|
|
CG_HALF1x4 = 1032,
|
|
CG_HALF2x1 = 1033,
|
|
CG_HALF2x2 = 1034,
|
|
CG_HALF2x3 = 1035,
|
|
CG_HALF2x4 = 1036,
|
|
CG_HALF3x1 = 1037,
|
|
CG_HALF3x2 = 1038,
|
|
CG_HALF3x3 = 1039,
|
|
CG_HALF3x4 = 1040,
|
|
CG_HALF4x1 = 1041,
|
|
CG_HALF4x2 = 1042,
|
|
CG_HALF4x3 = 1043,
|
|
CG_HALF4x4 = 1044,
|
|
CG_INT = 1093,
|
|
CG_INT1 = 1094,
|
|
CG_INT2 = 1095,
|
|
CG_INT3 = 1096,
|
|
CG_INT4 = 1097,
|
|
CG_INT1x1 = 1098,
|
|
CG_INT1x2 = 1099,
|
|
CG_INT1x3 = 1100,
|
|
CG_INT1x4 = 1101,
|
|
CG_INT2x1 = 1102,
|
|
CG_INT2x2 = 1103,
|
|
CG_INT2x3 = 1104,
|
|
CG_INT2x4 = 1105,
|
|
CG_INT3x1 = 1106,
|
|
CG_INT3x2 = 1107,
|
|
CG_INT3x3 = 1108,
|
|
CG_INT3x4 = 1109,
|
|
CG_INT4x1 = 1110,
|
|
CG_INT4x2 = 1111,
|
|
CG_INT4x3 = 1112,
|
|
CG_INT4x4 = 1113,
|
|
CG_LONG = 1271,
|
|
CG_LONG1 = 1272,
|
|
CG_LONG2 = 1273,
|
|
CG_LONG3 = 1274,
|
|
CG_LONG4 = 1275,
|
|
CG_LONG1x1 = 1276,
|
|
CG_LONG1x2 = 1277,
|
|
CG_LONG1x3 = 1278,
|
|
CG_LONG1x4 = 1279,
|
|
CG_LONG2x1 = 1280,
|
|
CG_LONG2x2 = 1281,
|
|
CG_LONG2x3 = 1282,
|
|
CG_LONG2x4 = 1283,
|
|
CG_LONG3x1 = 1284,
|
|
CG_LONG3x2 = 1285,
|
|
CG_LONG3x3 = 1286,
|
|
CG_LONG3x4 = 1287,
|
|
CG_LONG4x1 = 1288,
|
|
CG_LONG4x2 = 1289,
|
|
CG_LONG4x3 = 1290,
|
|
CG_LONG4x4 = 1291,
|
|
CG_SHORT = 1208,
|
|
CG_SHORT1 = 1209,
|
|
CG_SHORT2 = 1210,
|
|
CG_SHORT3 = 1211,
|
|
CG_SHORT4 = 1212,
|
|
CG_SHORT1x1 = 1213,
|
|
CG_SHORT1x2 = 1214,
|
|
CG_SHORT1x3 = 1215,
|
|
CG_SHORT1x4 = 1216,
|
|
CG_SHORT2x1 = 1217,
|
|
CG_SHORT2x2 = 1218,
|
|
CG_SHORT2x3 = 1219,
|
|
CG_SHORT2x4 = 1220,
|
|
CG_SHORT3x1 = 1221,
|
|
CG_SHORT3x2 = 1222,
|
|
CG_SHORT3x3 = 1223,
|
|
CG_SHORT3x4 = 1224,
|
|
CG_SHORT4x1 = 1225,
|
|
CG_SHORT4x2 = 1226,
|
|
CG_SHORT4x3 = 1227,
|
|
CG_SHORT4x4 = 1228,
|
|
CG_UCHAR = 1187,
|
|
CG_UCHAR1 = 1188,
|
|
CG_UCHAR2 = 1189,
|
|
CG_UCHAR3 = 1190,
|
|
CG_UCHAR4 = 1191,
|
|
CG_UCHAR1x1 = 1192,
|
|
CG_UCHAR1x2 = 1193,
|
|
CG_UCHAR1x3 = 1194,
|
|
CG_UCHAR1x4 = 1195,
|
|
CG_UCHAR2x1 = 1196,
|
|
CG_UCHAR2x2 = 1197,
|
|
CG_UCHAR2x3 = 1198,
|
|
CG_UCHAR2x4 = 1199,
|
|
CG_UCHAR3x1 = 1200,
|
|
CG_UCHAR3x2 = 1201,
|
|
CG_UCHAR3x3 = 1202,
|
|
CG_UCHAR3x4 = 1203,
|
|
CG_UCHAR4x1 = 1204,
|
|
CG_UCHAR4x2 = 1205,
|
|
CG_UCHAR4x3 = 1206,
|
|
CG_UCHAR4x4 = 1207,
|
|
CG_UINT = 1250,
|
|
CG_UINT1 = 1251,
|
|
CG_UINT2 = 1252,
|
|
CG_UINT3 = 1253,
|
|
CG_UINT4 = 1254,
|
|
CG_UINT1x1 = 1255,
|
|
CG_UINT1x2 = 1256,
|
|
CG_UINT1x3 = 1257,
|
|
CG_UINT1x4 = 1258,
|
|
CG_UINT2x1 = 1259,
|
|
CG_UINT2x2 = 1260,
|
|
CG_UINT2x3 = 1261,
|
|
CG_UINT2x4 = 1262,
|
|
CG_UINT3x1 = 1263,
|
|
CG_UINT3x2 = 1264,
|
|
CG_UINT3x3 = 1265,
|
|
CG_UINT3x4 = 1266,
|
|
CG_UINT4x1 = 1267,
|
|
CG_UINT4x2 = 1268,
|
|
CG_UINT4x3 = 1269,
|
|
CG_UINT4x4 = 1270,
|
|
CG_ULONG = 1292,
|
|
CG_ULONG1 = 1293,
|
|
CG_ULONG2 = 1294,
|
|
CG_ULONG3 = 1295,
|
|
CG_ULONG4 = 1296,
|
|
CG_ULONG1x1 = 1297,
|
|
CG_ULONG1x2 = 1298,
|
|
CG_ULONG1x3 = 1299,
|
|
CG_ULONG1x4 = 1300,
|
|
CG_ULONG2x1 = 1301,
|
|
CG_ULONG2x2 = 1302,
|
|
CG_ULONG2x3 = 1303,
|
|
CG_ULONG2x4 = 1304,
|
|
CG_ULONG3x1 = 1305,
|
|
CG_ULONG3x2 = 1306,
|
|
CG_ULONG3x3 = 1307,
|
|
CG_ULONG3x4 = 1308,
|
|
CG_ULONG4x1 = 1309,
|
|
CG_ULONG4x2 = 1310,
|
|
CG_ULONG4x3 = 1311,
|
|
CG_ULONG4x4 = 1312,
|
|
CG_USHORT = 1229,
|
|
CG_USHORT1 = 1230,
|
|
CG_USHORT2 = 1231,
|
|
CG_USHORT3 = 1232,
|
|
CG_USHORT4 = 1233,
|
|
CG_USHORT1x1 = 1234,
|
|
CG_USHORT1x2 = 1235,
|
|
CG_USHORT1x3 = 1236,
|
|
CG_USHORT1x4 = 1237,
|
|
CG_USHORT2x1 = 1238,
|
|
CG_USHORT2x2 = 1239,
|
|
CG_USHORT2x3 = 1240,
|
|
CG_USHORT2x4 = 1241,
|
|
CG_USHORT3x1 = 1242,
|
|
CG_USHORT3x2 = 1243,
|
|
CG_USHORT3x3 = 1244,
|
|
CG_USHORT3x4 = 1245,
|
|
CG_USHORT4x1 = 1246,
|
|
CG_USHORT4x2 = 1247,
|
|
CG_USHORT4x3 = 1248,
|
|
CG_USHORT4x4 = 1249
|
|
} CGtype;
|
|
|
|
typedef enum
|
|
{
|
|
CG_TEXUNIT0 = 2048,
|
|
CG_TEXUNIT1 = 2049,
|
|
CG_TEXUNIT2 = 2050,
|
|
CG_TEXUNIT3 = 2051,
|
|
CG_TEXUNIT4 = 2052,
|
|
CG_TEXUNIT5 = 2053,
|
|
CG_TEXUNIT6 = 2054,
|
|
CG_TEXUNIT7 = 2055,
|
|
CG_TEXUNIT8 = 2056,
|
|
CG_TEXUNIT9 = 2057,
|
|
CG_TEXUNIT10 = 2058,
|
|
CG_TEXUNIT11 = 2059,
|
|
CG_TEXUNIT12 = 2060,
|
|
CG_TEXUNIT13 = 2061,
|
|
CG_TEXUNIT14 = 2062,
|
|
CG_TEXUNIT15 = 2063,
|
|
CG_TEXUNIT16 = 4624,
|
|
CG_TEXUNIT17 = 4625,
|
|
CG_TEXUNIT18 = 4626,
|
|
CG_TEXUNIT19 = 4627,
|
|
CG_TEXUNIT20 = 4628,
|
|
CG_TEXUNIT21 = 4629,
|
|
CG_TEXUNIT22 = 4630,
|
|
CG_TEXUNIT23 = 4631,
|
|
CG_TEXUNIT24 = 4632,
|
|
CG_TEXUNIT25 = 4633,
|
|
CG_TEXUNIT26 = 4634,
|
|
CG_TEXUNIT27 = 4635,
|
|
CG_TEXUNIT28 = 4636,
|
|
CG_TEXUNIT29 = 4637,
|
|
CG_TEXUNIT30 = 4638,
|
|
CG_TEXUNIT31 = 4639,
|
|
CG_BUFFER0 = 2064,
|
|
CG_BUFFER1 = 2065,
|
|
CG_BUFFER2 = 2066,
|
|
CG_BUFFER3 = 2067,
|
|
CG_BUFFER4 = 2068,
|
|
CG_BUFFER5 = 2069,
|
|
CG_BUFFER6 = 2070,
|
|
CG_BUFFER7 = 2071,
|
|
CG_BUFFER8 = 2072,
|
|
CG_BUFFER9 = 2073,
|
|
CG_BUFFER10 = 2074,
|
|
CG_BUFFER11 = 2075,
|
|
CG_ATTR0 = 2113,
|
|
CG_ATTR1 = 2114,
|
|
CG_ATTR2 = 2115,
|
|
CG_ATTR3 = 2116,
|
|
CG_ATTR4 = 2117,
|
|
CG_ATTR5 = 2118,
|
|
CG_ATTR6 = 2119,
|
|
CG_ATTR7 = 2120,
|
|
CG_ATTR8 = 2121,
|
|
CG_ATTR9 = 2122,
|
|
CG_ATTR10 = 2123,
|
|
CG_ATTR11 = 2124,
|
|
CG_ATTR12 = 2125,
|
|
CG_ATTR13 = 2126,
|
|
CG_ATTR14 = 2127,
|
|
CG_ATTR15 = 2128,
|
|
CG_C = 2178,
|
|
CG_TEX0 = 2179,
|
|
CG_TEX1 = 2180,
|
|
CG_TEX2 = 2181,
|
|
CG_TEX3 = 2192,
|
|
CG_TEX4 = 2193,
|
|
CG_TEX5 = 2194,
|
|
CG_TEX6 = 2195,
|
|
CG_TEX7 = 2196,
|
|
CG_HPOS = 2243,
|
|
CG_COL0 = 2245,
|
|
CG_COL1 = 2246,
|
|
CG_COL2 = 2247,
|
|
CG_COL3 = 2248,
|
|
CG_PSIZ = 2309,
|
|
CG_CLP0 = 2310,
|
|
CG_CLP1 = 2311,
|
|
CG_CLP2 = 2312,
|
|
CG_CLP3 = 2313,
|
|
CG_CLP4 = 2314,
|
|
CG_CLP5 = 2315,
|
|
CG_WPOS = 2373,
|
|
CG_POINTCOORD = 2374,
|
|
CG_POSITION0 = 2437,
|
|
CG_POSITION1 = 2438,
|
|
CG_POSITION2 = 2439,
|
|
CG_POSITION3 = 2440,
|
|
CG_POSITION4 = 2441,
|
|
CG_POSITION5 = 2442,
|
|
CG_POSITION6 = 2443,
|
|
CG_POSITION7 = 2444,
|
|
CG_POSITION8 = 2445,
|
|
CG_POSITION9 = 2446,
|
|
CG_POSITION10 = 2447,
|
|
CG_POSITION11 = 2448,
|
|
CG_POSITION12 = 2449,
|
|
CG_POSITION13 = 2450,
|
|
CG_POSITION14 = 2451,
|
|
CG_POSITION15 = 2452,
|
|
CG_DIFFUSE0 = 2501,
|
|
CG_TANGENT0 = 2565,
|
|
CG_TANGENT1 = 2566,
|
|
CG_TANGENT2 = 2567,
|
|
CG_TANGENT3 = 2568,
|
|
CG_TANGENT4 = 2569,
|
|
CG_TANGENT5 = 2570,
|
|
CG_TANGENT6 = 2571,
|
|
CG_TANGENT7 = 2572,
|
|
CG_TANGENT8 = 2573,
|
|
CG_TANGENT9 = 2574,
|
|
CG_TANGENT10 = 2575,
|
|
CG_TANGENT11 = 2576,
|
|
CG_TANGENT12 = 2577,
|
|
CG_TANGENT13 = 2578,
|
|
CG_TANGENT14 = 2579,
|
|
CG_TANGENT15 = 2580,
|
|
CG_SPECULAR0 = 2629,
|
|
CG_BLENDINDICES0 = 2693,
|
|
CG_BLENDINDICES1 = 2694,
|
|
CG_BLENDINDICES2 = 2695,
|
|
CG_BLENDINDICES3 = 2696,
|
|
CG_BLENDINDICES4 = 2697,
|
|
CG_BLENDINDICES5 = 2698,
|
|
CG_BLENDINDICES6 = 2699,
|
|
CG_BLENDINDICES7 = 2700,
|
|
CG_BLENDINDICES8 = 2701,
|
|
CG_BLENDINDICES9 = 2702,
|
|
CG_BLENDINDICES10 = 2703,
|
|
CG_BLENDINDICES11 = 2704,
|
|
CG_BLENDINDICES12 = 2705,
|
|
CG_BLENDINDICES13 = 2706,
|
|
CG_BLENDINDICES14 = 2707,
|
|
CG_BLENDINDICES15 = 2708,
|
|
CG_COLOR0 = 2757,
|
|
CG_COLOR1 = 2758,
|
|
CG_COLOR2 = 2759,
|
|
CG_COLOR3 = 2760,
|
|
CG_COLOR4 = 2761,
|
|
CG_COLOR5 = 2762,
|
|
CG_COLOR6 = 2763,
|
|
CG_COLOR7 = 2764,
|
|
CG_COLOR8 = 2765,
|
|
CG_COLOR9 = 2766,
|
|
CG_COLOR10 = 2767,
|
|
CG_COLOR11 = 2768,
|
|
CG_COLOR12 = 2769,
|
|
CG_COLOR13 = 2770,
|
|
CG_COLOR14 = 2771,
|
|
CG_COLOR15 = 2772,
|
|
CG_PSIZE0 = 2821,
|
|
CG_PSIZE1 = 2822,
|
|
CG_PSIZE2 = 2823,
|
|
CG_PSIZE3 = 2824,
|
|
CG_PSIZE4 = 2825,
|
|
CG_PSIZE5 = 2826,
|
|
CG_PSIZE6 = 2827,
|
|
CG_PSIZE7 = 2828,
|
|
CG_PSIZE8 = 2829,
|
|
CG_PSIZE9 = 2830,
|
|
CG_PSIZE10 = 2831,
|
|
CG_PSIZE11 = 2832,
|
|
CG_PSIZE12 = 2833,
|
|
CG_PSIZE13 = 2834,
|
|
CG_PSIZE14 = 2835,
|
|
CG_PSIZE15 = 2836,
|
|
CG_BINORMAL0 = 2885,
|
|
CG_BINORMAL1 = 2886,
|
|
CG_BINORMAL2 = 2887,
|
|
CG_BINORMAL3 = 2888,
|
|
CG_BINORMAL4 = 2889,
|
|
CG_BINORMAL5 = 2890,
|
|
CG_BINORMAL6 = 2891,
|
|
CG_BINORMAL7 = 2892,
|
|
CG_BINORMAL8 = 2893,
|
|
CG_BINORMAL9 = 2894,
|
|
CG_BINORMAL10 = 2895,
|
|
CG_BINORMAL11 = 2896,
|
|
CG_BINORMAL12 = 2897,
|
|
CG_BINORMAL13 = 2898,
|
|
CG_BINORMAL14 = 2899,
|
|
CG_BINORMAL15 = 2900,
|
|
CG_FOG0 = 2917,
|
|
CG_FOG1 = 2918,
|
|
CG_FOG2 = 2919,
|
|
CG_FOG3 = 2920,
|
|
CG_FOG4 = 2921,
|
|
CG_FOG5 = 2922,
|
|
CG_FOG6 = 2923,
|
|
CG_FOG7 = 2924,
|
|
CG_FOG8 = 2925,
|
|
CG_FOG9 = 2926,
|
|
CG_FOG10 = 2927,
|
|
CG_FOG11 = 2928,
|
|
CG_FOG12 = 2929,
|
|
CG_FOG13 = 2930,
|
|
CG_FOG14 = 2931,
|
|
CG_FOG15 = 2932,
|
|
CG_DEPTH0 = 2933,
|
|
CG_DEPTH1 = 2934,
|
|
CG_DEPTH2 = 2935,
|
|
CG_DEPTH3 = 2936,
|
|
CG_DEPTH4 = 2937,
|
|
CG_DEPTH5 = 2938,
|
|
CG_DEPTH6 = 2939,
|
|
CG_DEPTH7 = 2940,
|
|
CG_DEPTH8 = 2941,
|
|
CG_DEPTH9 = 2942,
|
|
CG_DEPTH10 = 2943,
|
|
CG_DEPTH11 = 2944,
|
|
CG_DEPTH12 = 2945,
|
|
CG_DEPTH13 = 2946,
|
|
CG_DEPTH14 = 2947,
|
|
CG_DEPTH15 = 2948,
|
|
CG_SAMPLE0 = 2949,
|
|
CG_SAMPLE1 = 2950,
|
|
CG_SAMPLE2 = 2951,
|
|
CG_SAMPLE3 = 2952,
|
|
CG_SAMPLE4 = 2953,
|
|
CG_SAMPLE5 = 2954,
|
|
CG_SAMPLE6 = 2955,
|
|
CG_SAMPLE7 = 2956,
|
|
CG_SAMPLE8 = 2957,
|
|
CG_SAMPLE9 = 2958,
|
|
CG_SAMPLE10 = 2959,
|
|
CG_SAMPLE11 = 2960,
|
|
CG_SAMPLE12 = 2961,
|
|
CG_SAMPLE13 = 2962,
|
|
CG_SAMPLE14 = 2963,
|
|
CG_SAMPLE15 = 2964,
|
|
CG_BLENDWEIGHT0 = 3028,
|
|
CG_BLENDWEIGHT1 = 3029,
|
|
CG_BLENDWEIGHT2 = 3030,
|
|
CG_BLENDWEIGHT3 = 3031,
|
|
CG_BLENDWEIGHT4 = 3032,
|
|
CG_BLENDWEIGHT5 = 3033,
|
|
CG_BLENDWEIGHT6 = 3034,
|
|
CG_BLENDWEIGHT7 = 3035,
|
|
CG_BLENDWEIGHT8 = 3036,
|
|
CG_BLENDWEIGHT9 = 3037,
|
|
CG_BLENDWEIGHT10 = 3038,
|
|
CG_BLENDWEIGHT11 = 3039,
|
|
CG_BLENDWEIGHT12 = 3040,
|
|
CG_BLENDWEIGHT13 = 3041,
|
|
CG_BLENDWEIGHT14 = 3042,
|
|
CG_BLENDWEIGHT15 = 3043,
|
|
CG_NORMAL0 = 3092,
|
|
CG_NORMAL1 = 3093,
|
|
CG_NORMAL2 = 3094,
|
|
CG_NORMAL3 = 3095,
|
|
CG_NORMAL4 = 3096,
|
|
CG_NORMAL5 = 3097,
|
|
CG_NORMAL6 = 3098,
|
|
CG_NORMAL7 = 3099,
|
|
CG_NORMAL8 = 3100,
|
|
CG_NORMAL9 = 3101,
|
|
CG_NORMAL10 = 3102,
|
|
CG_NORMAL11 = 3103,
|
|
CG_NORMAL12 = 3104,
|
|
CG_NORMAL13 = 3105,
|
|
CG_NORMAL14 = 3106,
|
|
CG_NORMAL15 = 3107,
|
|
CG_FOGCOORD = 3156,
|
|
CG_TEXCOORD0 = 3220,
|
|
CG_TEXCOORD1 = 3221,
|
|
CG_TEXCOORD2 = 3222,
|
|
CG_TEXCOORD3 = 3223,
|
|
CG_TEXCOORD4 = 3224,
|
|
CG_TEXCOORD5 = 3225,
|
|
CG_TEXCOORD6 = 3226,
|
|
CG_TEXCOORD7 = 3227,
|
|
CG_TEXCOORD8 = 3228,
|
|
CG_TEXCOORD9 = 3229,
|
|
CG_TEXCOORD10 = 3230,
|
|
CG_TEXCOORD11 = 3231,
|
|
CG_TEXCOORD12 = 3232,
|
|
CG_TEXCOORD13 = 3233,
|
|
CG_TEXCOORD14 = 3234,
|
|
CG_TEXCOORD15 = 3235,
|
|
CG_COMBINER_CONST0 = 3284,
|
|
CG_COMBINER_CONST1 = 3285,
|
|
CG_COMBINER_STAGE_CONST0 = 3286,
|
|
CG_COMBINER_STAGE_CONST1 = 3287,
|
|
CG_OFFSET_TEXTURE_MATRIX = 3288,
|
|
CG_OFFSET_TEXTURE_SCALE = 3289,
|
|
CG_OFFSET_TEXTURE_BIAS = 3290,
|
|
CG_CONST_EYE = 3291,
|
|
CG_COVERAGE = 3292,
|
|
CG_TESSFACTOR = 3255,
|
|
CG_GLSL_UNIFORM = 3300,
|
|
CG_GLSL_ATTRIB = 3301,
|
|
CG_ENV = 3302,
|
|
CG_HLSL_UNIFORM = 3559,
|
|
CG_HLSL_VARYING = 3560,
|
|
CG_SAMPLER_RES = 3561,
|
|
CG_LASTCOL0 = 4400,
|
|
CG_LASTCOL1 = 4401,
|
|
CG_LASTCOL2 = 4402,
|
|
CG_LASTCOL3 = 4403,
|
|
CG_LASTCOL4 = 4404,
|
|
CG_LASTCOL5 = 4405,
|
|
CG_LASTCOL6 = 4406,
|
|
CG_LASTCOL7 = 4407,
|
|
CG_FACE = 4410,
|
|
CG_PRIMITIVEID = 4411,
|
|
CG_INSTANCEID = 4412,
|
|
CG_SAMPLEID = 4413,
|
|
CG_VERTEXID = 4414,
|
|
CG_LAYER = 4415,
|
|
CG_SAMPLEMASK = 4416,
|
|
CG_CONTROLPOINTID = 4417,
|
|
CG_EDGETESS = 4418,
|
|
CG_INNERTESS = 4419,
|
|
CG_UNDEFINED = 3256
|
|
} CGresource;
|
|
|
|
typedef enum
|
|
{
|
|
CG_PROFILE_UNKNOWN = 6145,
|
|
CG_PROFILE_VP20 = 6146,
|
|
CG_PROFILE_FP20 = 6147,
|
|
CG_PROFILE_VP30 = 6148,
|
|
CG_PROFILE_FP30 = 6149,
|
|
CG_PROFILE_ARBVP1 = 6150,
|
|
CG_PROFILE_FP40 = 6151,
|
|
CG_PROFILE_ARBFP1 = 7000,
|
|
CG_PROFILE_VP40 = 7001,
|
|
CG_PROFILE_GLSLV = 7007, /* GLSL vertex shader */
|
|
CG_PROFILE_GLSLF = 7008, /* GLSL fragment shader */
|
|
CG_PROFILE_GLSLG = 7016, /* GLSL geometry shader */
|
|
CG_PROFILE_GLSLC = 7009, /* Combined GLSL program */
|
|
CG_PROFILE_GPU_FP = 7010, /* Deprecated alias for CG_PROFILE_GP4FP */
|
|
CG_PROFILE_GPU_VP = 7011, /* Deprecated alias for CG_PROFILE_GP4VP */
|
|
CG_PROFILE_GPU_GP = 7012, /* Deprecated alias for CG_PROFILE_GP4GP */
|
|
CG_PROFILE_GP4FP = 7010, /* NV_gpu_program4 fragment program */
|
|
CG_PROFILE_GP4VP = 7011, /* NV_gpu_program4 vertex program */
|
|
CG_PROFILE_GP4GP = 7012, /* NV_gpu_program4 geometry program */
|
|
CG_PROFILE_GP5FP = 7017, /* NV_gpu_program5 fragment program */
|
|
CG_PROFILE_GP5VP = 7018, /* NV_gpu_program5 vertex program */
|
|
CG_PROFILE_GP5GP = 7019, /* NV_gpu_program5 geometry program */
|
|
CG_PROFILE_GP5TCP = 7020, /* NV_tessellation_program5 tessellation control program */
|
|
CG_PROFILE_GP5TEP = 7021, /* NV_tessellation_program5 tessellation evaluation program */
|
|
CG_PROFILE_VS_1_1 = 6153,
|
|
CG_PROFILE_VS_2_0 = 6154,
|
|
CG_PROFILE_VS_2_X = 6155,
|
|
CG_PROFILE_VS_2_SW = 6156,
|
|
CG_PROFILE_PS_1_1 = 6159,
|
|
CG_PROFILE_PS_1_2 = 6160,
|
|
CG_PROFILE_PS_1_3 = 6161,
|
|
CG_PROFILE_PS_2_0 = 6162,
|
|
CG_PROFILE_PS_2_X = 6163,
|
|
CG_PROFILE_PS_2_SW = 6164,
|
|
CG_PROFILE_VS_3_0 = 6157, /* DX9 vertex shader */
|
|
CG_PROFILE_PS_3_0 = 6165, /* DX9 pixel shader */
|
|
CG_PROFILE_HLSLV = 6158, /* DX9 HLSL vertex shader */
|
|
CG_PROFILE_HLSLF = 6166, /* DX9 HLSL fragment shader */
|
|
CG_PROFILE_VS_4_0 = 6167, /* DX10 vertex shader */
|
|
CG_PROFILE_PS_4_0 = 6168, /* DX10 pixel shader */
|
|
CG_PROFILE_GS_4_0 = 6169, /* DX10 geometry shader */
|
|
CG_PROFILE_VS_5_0 = 6170, /* DX11 vertex shader */
|
|
CG_PROFILE_PS_5_0 = 6171, /* DX11 pixel shader */
|
|
CG_PROFILE_GS_5_0 = 6172, /* DX11 geometry shader */
|
|
CG_PROFILE_HS_5_0 = 6173, /* DX11 hull shader (tessellation control) */
|
|
CG_PROFILE_DS_5_0 = 6174, /* DX11 domain shader (tessellation evaluation) */
|
|
CG_PROFILE_GENERIC = 7002
|
|
} CGprofile;
|
|
|
|
typedef enum
|
|
{
|
|
CG_NO_ERROR = 0,
|
|
CG_COMPILER_ERROR = 1,
|
|
CG_INVALID_PARAMETER_ERROR = 2,
|
|
CG_INVALID_PROFILE_ERROR = 3,
|
|
CG_PROGRAM_LOAD_ERROR = 4,
|
|
CG_PROGRAM_BIND_ERROR = 5,
|
|
CG_PROGRAM_NOT_LOADED_ERROR = 6,
|
|
CG_UNSUPPORTED_GL_EXTENSION_ERROR = 7,
|
|
CG_INVALID_VALUE_TYPE_ERROR = 8,
|
|
CG_NOT_MATRIX_PARAM_ERROR = 9,
|
|
CG_INVALID_ENUMERANT_ERROR = 10,
|
|
CG_NOT_4x4_MATRIX_ERROR = 11,
|
|
CG_FILE_READ_ERROR = 12,
|
|
CG_FILE_WRITE_ERROR = 13,
|
|
CG_NVPARSE_ERROR = 14,
|
|
CG_MEMORY_ALLOC_ERROR = 15,
|
|
CG_INVALID_CONTEXT_HANDLE_ERROR = 16,
|
|
CG_INVALID_PROGRAM_HANDLE_ERROR = 17,
|
|
CG_INVALID_PARAM_HANDLE_ERROR = 18,
|
|
CG_UNKNOWN_PROFILE_ERROR = 19,
|
|
CG_VAR_ARG_ERROR = 20,
|
|
CG_INVALID_DIMENSION_ERROR = 21,
|
|
CG_ARRAY_PARAM_ERROR = 22,
|
|
CG_OUT_OF_ARRAY_BOUNDS_ERROR = 23,
|
|
CG_CONFLICTING_TYPES_ERROR = 24,
|
|
CG_CONFLICTING_PARAMETER_TYPES_ERROR = 25,
|
|
CG_PARAMETER_IS_NOT_SHARED_ERROR = 26,
|
|
CG_INVALID_PARAMETER_VARIABILITY_ERROR = 27,
|
|
CG_CANNOT_DESTROY_PARAMETER_ERROR = 28,
|
|
CG_NOT_ROOT_PARAMETER_ERROR = 29,
|
|
CG_PARAMETERS_DO_NOT_MATCH_ERROR = 30,
|
|
CG_IS_NOT_PROGRAM_PARAMETER_ERROR = 31,
|
|
CG_INVALID_PARAMETER_TYPE_ERROR = 32,
|
|
CG_PARAMETER_IS_NOT_RESIZABLE_ARRAY_ERROR = 33,
|
|
CG_INVALID_SIZE_ERROR = 34,
|
|
CG_BIND_CREATES_CYCLE_ERROR = 35,
|
|
CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR = 36,
|
|
CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR = 37,
|
|
CG_ARRAY_HAS_WRONG_DIMENSION_ERROR = 38,
|
|
CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR = 39,
|
|
CG_INVALID_EFFECT_HANDLE_ERROR = 40,
|
|
CG_INVALID_STATE_HANDLE_ERROR = 41,
|
|
CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR = 42,
|
|
CG_INVALID_PASS_HANDLE_ERROR = 43,
|
|
CG_INVALID_ANNOTATION_HANDLE_ERROR = 44,
|
|
CG_INVALID_TECHNIQUE_HANDLE_ERROR = 45,
|
|
CG_INVALID_PARAMETER_HANDLE_ERROR = 46,
|
|
CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR = 47,
|
|
CG_INVALID_FUNCTION_HANDLE_ERROR = 48,
|
|
CG_INVALID_TECHNIQUE_ERROR = 49,
|
|
CG_INVALID_POINTER_ERROR = 50,
|
|
CG_NOT_ENOUGH_DATA_ERROR = 51,
|
|
CG_NON_NUMERIC_PARAMETER_ERROR = 52,
|
|
CG_ARRAY_SIZE_MISMATCH_ERROR = 53,
|
|
CG_CANNOT_SET_NON_UNIFORM_PARAMETER_ERROR = 54,
|
|
CG_DUPLICATE_NAME_ERROR = 55,
|
|
CG_INVALID_OBJ_HANDLE_ERROR = 56,
|
|
CG_INVALID_BUFFER_HANDLE_ERROR = 57,
|
|
CG_BUFFER_INDEX_OUT_OF_RANGE_ERROR = 58,
|
|
CG_BUFFER_ALREADY_MAPPED_ERROR = 59,
|
|
CG_BUFFER_UPDATE_NOT_ALLOWED_ERROR = 60,
|
|
CG_GLSLG_UNCOMBINED_LOAD_ERROR = 61
|
|
} CGerror;
|
|
|
|
typedef enum
|
|
{
|
|
CG_UNKNOWN = 4096,
|
|
CG_IN = 4097,
|
|
CG_OUT = 4098,
|
|
CG_INOUT = 4099,
|
|
CG_MIXED = 4100,
|
|
CG_VARYING = 4101,
|
|
CG_UNIFORM = 4102,
|
|
CG_CONSTANT = 4103,
|
|
CG_PROGRAM_SOURCE = 4104, /* cgGetProgramString */
|
|
CG_PROGRAM_ENTRY = 4105, /* cgGetProgramString */
|
|
CG_COMPILED_PROGRAM = 4106, /* cgGetProgramString */
|
|
CG_PROGRAM_PROFILE = 4107, /* cgGetProgramString */
|
|
CG_GLOBAL = 4108,
|
|
CG_PROGRAM = 4109,
|
|
CG_DEFAULT = 4110,
|
|
CG_ERROR = 4111,
|
|
CG_SOURCE = 4112,
|
|
CG_OBJECT = 4113,
|
|
CG_COMPILE_MANUAL = 4114,
|
|
CG_COMPILE_IMMEDIATE = 4115,
|
|
CG_COMPILE_LAZY = 4116,
|
|
CG_CURRENT = 4117,
|
|
CG_LITERAL = 4118,
|
|
CG_VERSION = 4119, /* cgGetString */
|
|
CG_ROW_MAJOR = 4120,
|
|
CG_COLUMN_MAJOR = 4121,
|
|
CG_FRAGMENT = 4122, /* cgGetProgramInput and cgGetProgramOutput */
|
|
CG_VERTEX = 4123, /* cgGetProgramInput and cgGetProgramOutput */
|
|
CG_POINT = 4124, /* Geometry program cgGetProgramInput */
|
|
CG_LINE = 4125, /* Geometry program cgGetProgramInput */
|
|
CG_LINE_ADJ = 4126, /* Geometry program cgGetProgramInput */
|
|
CG_TRIANGLE = 4127, /* Geometry program cgGetProgramInput */
|
|
CG_TRIANGLE_ADJ = 4128, /* Geometry program cgGetProgramInput */
|
|
CG_POINT_OUT = 4129, /* Geometry program cgGetProgramOutput */
|
|
CG_LINE_OUT = 4130, /* Geometry program cgGetProgramOutput */
|
|
CG_TRIANGLE_OUT = 4131, /* Geometry program cgGetProgramOutput */
|
|
CG_IMMEDIATE_PARAMETER_SETTING = 4132,
|
|
CG_DEFERRED_PARAMETER_SETTING = 4133,
|
|
CG_NO_LOCKS_POLICY = 4134,
|
|
CG_THREAD_SAFE_POLICY = 4135,
|
|
CG_FORCE_UPPER_CASE_POLICY = 4136,
|
|
CG_UNCHANGED_CASE_POLICY = 4137,
|
|
CG_IS_OPENGL_PROFILE = 4138,
|
|
CG_IS_DIRECT3D_PROFILE = 4139,
|
|
CG_IS_DIRECT3D_8_PROFILE = 4140,
|
|
CG_IS_DIRECT3D_9_PROFILE = 4141,
|
|
CG_IS_DIRECT3D_10_PROFILE = 4142,
|
|
CG_IS_VERTEX_PROFILE = 4143,
|
|
CG_IS_FRAGMENT_PROFILE = 4144,
|
|
CG_IS_GEOMETRY_PROFILE = 4145,
|
|
CG_IS_TRANSLATION_PROFILE = 4146,
|
|
CG_IS_HLSL_PROFILE = 4147,
|
|
CG_IS_GLSL_PROFILE = 4148,
|
|
CG_IS_TESSELLATION_CONTROL_PROFILE = 4149,
|
|
CG_IS_TESSELLATION_EVALUATION_PROFILE = 4150,
|
|
CG_PATCH = 4152, /* cgGetProgramInput and cgGetProgramOutput */
|
|
CG_IS_DIRECT3D_11_PROFILE = 4153
|
|
} CGenum;
|
|
|
|
typedef enum
|
|
{
|
|
CG_PARAMETERCLASS_UNKNOWN = 0,
|
|
CG_PARAMETERCLASS_SCALAR = 1,
|
|
CG_PARAMETERCLASS_VECTOR = 2,
|
|
CG_PARAMETERCLASS_MATRIX = 3,
|
|
CG_PARAMETERCLASS_STRUCT = 4,
|
|
CG_PARAMETERCLASS_ARRAY = 5,
|
|
CG_PARAMETERCLASS_SAMPLER = 6,
|
|
CG_PARAMETERCLASS_OBJECT = 7
|
|
} CGparameterclass;
|
|
|
|
typedef enum
|
|
{
|
|
CG_UNKNOWN_DOMAIN = 0,
|
|
CG_FIRST_DOMAIN = 1,
|
|
CG_VERTEX_DOMAIN = 1,
|
|
CG_FRAGMENT_DOMAIN = 2,
|
|
CG_GEOMETRY_DOMAIN = 3,
|
|
CG_TESSELLATION_CONTROL_DOMAIN = 4,
|
|
CG_TESSELLATION_EVALUATION_DOMAIN = 5
|
|
} CGdomain;
|
|
|
|
typedef enum
|
|
{
|
|
CG_MAP_READ = 0,
|
|
CG_MAP_WRITE = 1,
|
|
CG_MAP_READ_WRITE = 2,
|
|
CG_MAP_WRITE_DISCARD = 3,
|
|
CG_MAP_WRITE_NO_OVERWRITE = 4
|
|
} CGbufferaccess;
|
|
|
|
typedef enum
|
|
{
|
|
CG_BUFFER_USAGE_STREAM_DRAW = 0,
|
|
CG_BUFFER_USAGE_STREAM_READ = 1,
|
|
CG_BUFFER_USAGE_STREAM_COPY = 2,
|
|
CG_BUFFER_USAGE_STATIC_DRAW = 3,
|
|
CG_BUFFER_USAGE_STATIC_READ = 4,
|
|
CG_BUFFER_USAGE_STATIC_COPY = 5,
|
|
CG_BUFFER_USAGE_DYNAMIC_DRAW = 6,
|
|
CG_BUFFER_USAGE_DYNAMIC_READ = 7,
|
|
CG_BUFFER_USAGE_DYNAMIC_COPY = 8
|
|
} CGbufferusage;
|
|
|
|
|
|
typedef CGbool ( * CGstatecallback)(CGstateassignment);
|
|
typedef void ( * CGerrorCallbackFunc)(void);
|
|
typedef void ( * CGerrorHandlerFunc)(CGcontext, CGerror, void *);
|
|
typedef void ( * CGIncludeCallbackFunc)(CGcontext, const char *);
|
|
|
|
CGenum cgSetLockingPolicy(CGenum lockingPolicy);
|
|
CGenum cgGetLockingPolicy(void);
|
|
CGenum cgSetSemanticCasePolicy(CGenum casePolicy);
|
|
CGenum cgGetSemanticCasePolicy(void);
|
|
CGcontext cgCreateContext(void);
|
|
void cgSetContextBehavior(CGcontext context, CGbehavior behavior);
|
|
CGbehavior cgGetContextBehavior(CGcontext context);
|
|
const char * cgGetBehaviorString(CGbehavior behavior);
|
|
CGbehavior cgGetBehavior(const char *behavior_string);
|
|
void cgDestroyContext(CGcontext context);
|
|
CGbool cgIsContext(CGcontext context);
|
|
const char * cgGetLastListing(CGcontext context);
|
|
void cgSetLastListing(CGhandle handle, const char *listing);
|
|
void cgSetAutoCompile(CGcontext context, CGenum autoCompileMode);
|
|
CGenum cgGetAutoCompile(CGcontext context);
|
|
void cgSetParameterSettingMode(CGcontext context, CGenum parameterSettingMode);
|
|
CGenum cgGetParameterSettingMode(CGcontext context);
|
|
void cgSetCompilerIncludeString(CGcontext context, const char *name, const char *source);
|
|
void cgSetCompilerIncludeFile(CGcontext context, const char *name, const char *filename);
|
|
void cgSetCompilerIncludeCallback(CGcontext context, CGIncludeCallbackFunc func);
|
|
CGIncludeCallbackFunc cgGetCompilerIncludeCallback(CGcontext context);
|
|
CGprogram cgCreateProgram(CGcontext context, CGenum program_type, const char *program, CGprofile profile, const char *entry, const char **args);
|
|
CGprogram cgCreateProgramFromFile(CGcontext context, CGenum program_type, const char *program_file, CGprofile profile, const char *entry, const char **args);
|
|
CGprogram cgCopyProgram(CGprogram program);
|
|
void cgDestroyProgram(CGprogram program);
|
|
CGprogram cgGetFirstProgram(CGcontext context);
|
|
CGprogram cgGetNextProgram(CGprogram current);
|
|
CGcontext cgGetProgramContext(CGprogram program);
|
|
CGbool cgIsProgram(CGprogram program);
|
|
void cgCompileProgram(CGprogram program);
|
|
CGbool cgIsProgramCompiled(CGprogram program);
|
|
const char * cgGetProgramString(CGprogram program, CGenum pname);
|
|
CGprofile cgGetProgramProfile(CGprogram program);
|
|
char const * const * cgGetProgramOptions(CGprogram program);
|
|
void cgSetProgramProfile(CGprogram program, CGprofile profile);
|
|
CGenum cgGetProgramInput(CGprogram program);
|
|
CGenum cgGetProgramOutput(CGprogram program);
|
|
void cgSetPassProgramParameters(CGprogram program);
|
|
void cgUpdateProgramParameters(CGprogram program);
|
|
void cgUpdatePassParameters(CGpass pass);
|
|
CGparameter cgCreateParameter(CGcontext context, CGtype type);
|
|
CGparameter cgCreateParameterArray(CGcontext context, CGtype type, int length);
|
|
CGparameter cgCreateParameterMultiDimArray(CGcontext context, CGtype type, int dim, const int *lengths);
|
|
void cgDestroyParameter(CGparameter param);
|
|
void cgConnectParameter(CGparameter from, CGparameter to);
|
|
void cgDisconnectParameter(CGparameter param);
|
|
CGparameter cgGetConnectedParameter(CGparameter param);
|
|
int cgGetNumConnectedToParameters(CGparameter param);
|
|
CGparameter cgGetConnectedToParameter(CGparameter param, int index);
|
|
CGparameter cgGetNamedParameter(CGprogram program, const char *name);
|
|
CGparameter cgGetNamedProgramParameter(CGprogram program, CGenum name_space, const char *name);
|
|
CGparameter cgGetFirstParameter(CGprogram program, CGenum name_space);
|
|
CGparameter cgGetNextParameter(CGparameter current);
|
|
CGparameter cgGetFirstLeafParameter(CGprogram program, CGenum name_space);
|
|
CGparameter cgGetNextLeafParameter(CGparameter current);
|
|
CGparameter cgGetFirstStructParameter(CGparameter param);
|
|
CGparameter cgGetNamedStructParameter(CGparameter param, const char *name);
|
|
CGparameter cgGetFirstDependentParameter(CGparameter param);
|
|
CGparameter cgGetArrayParameter(CGparameter aparam, int index);
|
|
int cgGetArrayDimension(CGparameter param);
|
|
CGtype cgGetArrayType(CGparameter param);
|
|
int cgGetArraySize(CGparameter param, int dimension);
|
|
int cgGetArrayTotalSize(CGparameter param);
|
|
void cgSetArraySize(CGparameter param, int size);
|
|
void cgSetMultiDimArraySize(CGparameter param, const int *sizes);
|
|
CGprogram cgGetParameterProgram(CGparameter param);
|
|
CGcontext cgGetParameterContext(CGparameter param);
|
|
CGbool cgIsParameter(CGparameter param);
|
|
const char * cgGetParameterName(CGparameter param);
|
|
CGtype cgGetParameterType(CGparameter param);
|
|
CGtype cgGetParameterBaseType(CGparameter param);
|
|
CGparameterclass cgGetParameterClass(CGparameter param);
|
|
int cgGetParameterRows(CGparameter param);
|
|
int cgGetParameterColumns(CGparameter param);
|
|
CGtype cgGetParameterNamedType(CGparameter param);
|
|
const char * cgGetParameterSemantic(CGparameter param);
|
|
CGresource cgGetParameterResource(CGparameter param);
|
|
CGresource cgGetParameterBaseResource(CGparameter param);
|
|
unsigned long cgGetParameterResourceIndex(CGparameter param);
|
|
CGenum cgGetParameterVariability(CGparameter param);
|
|
CGenum cgGetParameterDirection(CGparameter param);
|
|
CGbool cgIsParameterReferenced(CGparameter param);
|
|
CGbool cgIsParameterUsed(CGparameter param, CGhandle handle);
|
|
const double * cgGetParameterValues(CGparameter param, CGenum value_type, int *nvalues);
|
|
void cgSetParameterValuedr(CGparameter param, int nelements, const double *vals);
|
|
void cgSetParameterValuedc(CGparameter param, int nelements, const double *vals);
|
|
void cgSetParameterValuefr(CGparameter param, int nelements, const float *vals);
|
|
void cgSetParameterValuefc(CGparameter param, int nelements, const float *vals);
|
|
void cgSetParameterValueir(CGparameter param, int nelements, const int *vals);
|
|
void cgSetParameterValueic(CGparameter param, int nelements, const int *vals);
|
|
int cgGetParameterValuedr(CGparameter param, int nelements, double *vals);
|
|
int cgGetParameterValuedc(CGparameter param, int nelements, double *vals);
|
|
int cgGetParameterValuefr(CGparameter param, int nelements, float *vals);
|
|
int cgGetParameterValuefc(CGparameter param, int nelements, float *vals);
|
|
int cgGetParameterValueir(CGparameter param, int nelements, int *vals);
|
|
int cgGetParameterValueic(CGparameter param, int nelements, int *vals);
|
|
int cgGetParameterDefaultValuedr(CGparameter param, int nelements, double *vals);
|
|
int cgGetParameterDefaultValuedc(CGparameter param, int nelements, double *vals);
|
|
int cgGetParameterDefaultValuefr(CGparameter param, int nelements, float *vals);
|
|
int cgGetParameterDefaultValuefc(CGparameter param, int nelements, float *vals);
|
|
int cgGetParameterDefaultValueir(CGparameter param, int nelements, int *vals);
|
|
int cgGetParameterDefaultValueic(CGparameter param, int nelements, int *vals);
|
|
const char * cgGetStringParameterValue(CGparameter param);
|
|
void cgSetStringParameterValue(CGparameter param, const char *str);
|
|
int cgGetParameterOrdinalNumber(CGparameter param);
|
|
CGbool cgIsParameterGlobal(CGparameter param);
|
|
int cgGetParameterIndex(CGparameter param);
|
|
void cgSetParameterVariability(CGparameter param, CGenum vary);
|
|
void cgSetParameterSemantic(CGparameter param, const char *semantic);
|
|
void cgSetParameter1f(CGparameter param, float x);
|
|
void cgSetParameter2f(CGparameter param, float x, float y);
|
|
void cgSetParameter3f(CGparameter param, float x, float y, float z);
|
|
void cgSetParameter4f(CGparameter param, float x, float y, float z, float w);
|
|
void cgSetParameter1d(CGparameter param, double x);
|
|
void cgSetParameter2d(CGparameter param, double x, double y);
|
|
void cgSetParameter3d(CGparameter param, double x, double y, double z);
|
|
void cgSetParameter4d(CGparameter param, double x, double y, double z, double w);
|
|
void cgSetParameter1i(CGparameter param, int x);
|
|
void cgSetParameter2i(CGparameter param, int x, int y);
|
|
void cgSetParameter3i(CGparameter param, int x, int y, int z);
|
|
void cgSetParameter4i(CGparameter param, int x, int y, int z, int w);
|
|
void cgSetParameter1iv(CGparameter param, const int *v);
|
|
void cgSetParameter2iv(CGparameter param, const int *v);
|
|
void cgSetParameter3iv(CGparameter param, const int *v);
|
|
void cgSetParameter4iv(CGparameter param, const int *v);
|
|
void cgSetParameter1fv(CGparameter param, const float *v);
|
|
void cgSetParameter2fv(CGparameter param, const float *v);
|
|
void cgSetParameter3fv(CGparameter param, const float *v);
|
|
void cgSetParameter4fv(CGparameter param, const float *v);
|
|
void cgSetParameter1dv(CGparameter param, const double *v);
|
|
void cgSetParameter2dv(CGparameter param, const double *v);
|
|
void cgSetParameter3dv(CGparameter param, const double *v);
|
|
void cgSetParameter4dv(CGparameter param, const double *v);
|
|
void cgSetMatrixParameterir(CGparameter param, const int *matrix);
|
|
void cgSetMatrixParameterdr(CGparameter param, const double *matrix);
|
|
void cgSetMatrixParameterfr(CGparameter param, const float *matrix);
|
|
void cgSetMatrixParameteric(CGparameter param, const int *matrix);
|
|
void cgSetMatrixParameterdc(CGparameter param, const double *matrix);
|
|
void cgSetMatrixParameterfc(CGparameter param, const float *matrix);
|
|
void cgGetMatrixParameterir(CGparameter param, int *matrix);
|
|
void cgGetMatrixParameterdr(CGparameter param, double *matrix);
|
|
void cgGetMatrixParameterfr(CGparameter param, float *matrix);
|
|
void cgGetMatrixParameteric(CGparameter param, int *matrix);
|
|
void cgGetMatrixParameterdc(CGparameter param, double *matrix);
|
|
void cgGetMatrixParameterfc(CGparameter param, float *matrix);
|
|
CGenum cgGetMatrixParameterOrder(CGparameter param);
|
|
CGparameter cgGetNamedSubParameter(CGparameter param, const char *name);
|
|
const char * cgGetTypeString(CGtype type);
|
|
CGtype cgGetType(const char *type_string);
|
|
CGtype cgGetNamedUserType(CGhandle handle, const char *name);
|
|
int cgGetNumUserTypes(CGhandle handle);
|
|
CGtype cgGetUserType(CGhandle handle, int index);
|
|
int cgGetNumParentTypes(CGtype type);
|
|
CGtype cgGetParentType(CGtype type, int index);
|
|
CGbool cgIsParentType(CGtype parent, CGtype child);
|
|
CGbool cgIsInterfaceType(CGtype type);
|
|
const char * cgGetResourceString(CGresource resource);
|
|
CGresource cgGetResource(const char *resource_string);
|
|
const char * cgGetEnumString(CGenum en);
|
|
CGenum cgGetEnum(const char *enum_string);
|
|
const char * cgGetProfileString(CGprofile profile);
|
|
CGprofile cgGetProfile(const char *profile_string);
|
|
int cgGetNumSupportedProfiles(void);
|
|
CGprofile cgGetSupportedProfile(int index);
|
|
CGbool cgIsProfileSupported(CGprofile profile);
|
|
CGbool cgGetProfileProperty(CGprofile profile, CGenum query);
|
|
const char * cgGetParameterClassString(CGparameterclass pc);
|
|
CGparameterclass cgGetParameterClassEnum(const char *pString);
|
|
const char * cgGetDomainString(CGdomain domain);
|
|
CGdomain cgGetDomain(const char *domain_string);
|
|
CGdomain cgGetProgramDomain(CGprogram program);
|
|
CGerror cgGetError(void);
|
|
CGerror cgGetFirstError(void);
|
|
const char * cgGetErrorString(CGerror error);
|
|
const char * cgGetLastErrorString(CGerror *error);
|
|
void cgSetErrorCallback(CGerrorCallbackFunc func);
|
|
CGerrorCallbackFunc cgGetErrorCallback(void);
|
|
void cgSetErrorHandler(CGerrorHandlerFunc func, void *data);
|
|
CGerrorHandlerFunc cgGetErrorHandler(void **data);
|
|
const char * cgGetString(CGenum sname);
|
|
CGeffect cgCreateEffect(CGcontext context, const char *code, const char **args);
|
|
CGeffect cgCreateEffectFromFile(CGcontext context, const char *filename, const char **args);
|
|
CGeffect cgCopyEffect(CGeffect effect);
|
|
void cgDestroyEffect(CGeffect effect);
|
|
CGcontext cgGetEffectContext(CGeffect effect);
|
|
CGbool cgIsEffect(CGeffect effect);
|
|
CGeffect cgGetFirstEffect(CGcontext context);
|
|
CGeffect cgGetNextEffect(CGeffect effect);
|
|
CGprogram cgCreateProgramFromEffect(CGeffect effect, CGprofile profile, const char *entry, const char **args);
|
|
CGtechnique cgGetFirstTechnique(CGeffect effect);
|
|
CGtechnique cgGetNextTechnique(CGtechnique tech);
|
|
CGtechnique cgGetNamedTechnique(CGeffect effect, const char *name);
|
|
const char * cgGetTechniqueName(CGtechnique tech);
|
|
CGbool cgIsTechnique(CGtechnique tech);
|
|
CGbool cgValidateTechnique(CGtechnique tech);
|
|
CGbool cgIsTechniqueValidated(CGtechnique tech);
|
|
CGeffect cgGetTechniqueEffect(CGtechnique tech);
|
|
CGpass cgGetFirstPass(CGtechnique tech);
|
|
CGpass cgGetNamedPass(CGtechnique tech, const char *name);
|
|
CGpass cgGetNextPass(CGpass pass);
|
|
CGbool cgIsPass(CGpass pass);
|
|
const char * cgGetPassName(CGpass pass);
|
|
CGtechnique cgGetPassTechnique(CGpass pass);
|
|
CGprogram cgGetPassProgram(CGpass pass, CGdomain domain);
|
|
void cgSetPassState(CGpass pass);
|
|
void cgResetPassState(CGpass pass);
|
|
CGstateassignment cgGetFirstStateAssignment(CGpass pass);
|
|
CGstateassignment cgGetNamedStateAssignment(CGpass pass, const char *name);
|
|
CGstateassignment cgGetNextStateAssignment(CGstateassignment sa);
|
|
CGbool cgIsStateAssignment(CGstateassignment sa);
|
|
CGbool cgCallStateSetCallback(CGstateassignment sa);
|
|
CGbool cgCallStateValidateCallback(CGstateassignment sa);
|
|
CGbool cgCallStateResetCallback(CGstateassignment sa);
|
|
CGpass cgGetStateAssignmentPass(CGstateassignment sa);
|
|
CGparameter cgGetSamplerStateAssignmentParameter(CGstateassignment sa);
|
|
const float * cgGetFloatStateAssignmentValues(CGstateassignment sa, int *nvalues);
|
|
const int * cgGetIntStateAssignmentValues(CGstateassignment sa, int *nvalues);
|
|
const CGbool * cgGetBoolStateAssignmentValues(CGstateassignment sa, int *nvalues);
|
|
const char * cgGetStringStateAssignmentValue(CGstateassignment sa);
|
|
CGprogram cgGetProgramStateAssignmentValue(CGstateassignment sa);
|
|
CGparameter cgGetTextureStateAssignmentValue(CGstateassignment sa);
|
|
CGparameter cgGetSamplerStateAssignmentValue(CGstateassignment sa);
|
|
int cgGetStateAssignmentIndex(CGstateassignment sa);
|
|
int cgGetNumDependentStateAssignmentParameters(CGstateassignment sa);
|
|
CGparameter cgGetDependentStateAssignmentParameter(CGstateassignment sa, int index);
|
|
int cgGetNumDependentProgramArrayStateAssignmentParameters(CGstateassignment sa);
|
|
CGparameter cgGetDependentProgramArrayStateAssignmentParameter(CGstateassignment sa, int index);
|
|
CGparameter cgGetConnectedStateAssignmentParameter(CGstateassignment sa);
|
|
CGstate cgGetStateAssignmentState(CGstateassignment sa);
|
|
CGstate cgGetSamplerStateAssignmentState(CGstateassignment sa);
|
|
CGstate cgCreateState(CGcontext context, const char *name, CGtype type);
|
|
CGstate cgCreateArrayState(CGcontext context, const char *name, CGtype type, int nelements);
|
|
void cgSetStateCallbacks(CGstate state, CGstatecallback set, CGstatecallback reset, CGstatecallback validate);
|
|
void cgSetStateLatestProfile(CGstate state, CGprofile profile);
|
|
CGstatecallback cgGetStateSetCallback(CGstate state);
|
|
CGstatecallback cgGetStateResetCallback(CGstate state);
|
|
CGstatecallback cgGetStateValidateCallback(CGstate state);
|
|
CGprofile cgGetStateLatestProfile(CGstate state);
|
|
CGcontext cgGetStateContext(CGstate state);
|
|
CGtype cgGetStateType(CGstate state);
|
|
const char * cgGetStateName(CGstate state);
|
|
CGstate cgGetNamedState(CGcontext context, const char *name);
|
|
CGstate cgGetFirstState(CGcontext context);
|
|
CGstate cgGetNextState(CGstate state);
|
|
CGbool cgIsState(CGstate state);
|
|
void cgAddStateEnumerant(CGstate state, const char *name, int value);
|
|
CGstate cgCreateSamplerState(CGcontext context, const char *name, CGtype type);
|
|
CGstate cgCreateArraySamplerState(CGcontext context, const char *name, CGtype type, int nelements);
|
|
CGstate cgGetNamedSamplerState(CGcontext context, const char *name);
|
|
CGstate cgGetFirstSamplerState(CGcontext context);
|
|
CGstateassignment cgGetFirstSamplerStateAssignment(CGparameter param);
|
|
CGstateassignment cgGetNamedSamplerStateAssignment(CGparameter param, const char *name);
|
|
void cgSetSamplerState(CGparameter param);
|
|
CGparameter cgGetNamedEffectParameter(CGeffect effect, const char *name);
|
|
CGparameter cgGetFirstLeafEffectParameter(CGeffect effect);
|
|
CGparameter cgGetFirstEffectParameter(CGeffect effect);
|
|
CGparameter cgGetEffectParameterBySemantic(CGeffect effect, const char *semantic);
|
|
CGannotation cgGetFirstTechniqueAnnotation(CGtechnique tech);
|
|
CGannotation cgGetFirstPassAnnotation(CGpass pass);
|
|
CGannotation cgGetFirstParameterAnnotation(CGparameter param);
|
|
CGannotation cgGetFirstProgramAnnotation(CGprogram program);
|
|
CGannotation cgGetFirstEffectAnnotation(CGeffect effect);
|
|
CGannotation cgGetNextAnnotation(CGannotation ann);
|
|
CGannotation cgGetNamedTechniqueAnnotation(CGtechnique tech, const char *name);
|
|
CGannotation cgGetNamedPassAnnotation(CGpass pass, const char *name);
|
|
CGannotation cgGetNamedParameterAnnotation(CGparameter param, const char *name);
|
|
CGannotation cgGetNamedProgramAnnotation(CGprogram program, const char *name);
|
|
CGannotation cgGetNamedEffectAnnotation(CGeffect effect, const char *name);
|
|
CGbool cgIsAnnotation(CGannotation ann);
|
|
const char * cgGetAnnotationName(CGannotation ann);
|
|
CGtype cgGetAnnotationType(CGannotation ann);
|
|
const float * cgGetFloatAnnotationValues(CGannotation ann, int *nvalues);
|
|
const int * cgGetIntAnnotationValues(CGannotation ann, int *nvalues);
|
|
const char * cgGetStringAnnotationValue(CGannotation ann);
|
|
const char * const * cgGetStringAnnotationValues(CGannotation ann, int *nvalues);
|
|
const CGbool * cgGetBoolAnnotationValues(CGannotation ann, int *nvalues);
|
|
const int * cgGetBooleanAnnotationValues(CGannotation ann, int *nvalues);
|
|
int cgGetNumDependentAnnotationParameters(CGannotation ann);
|
|
CGparameter cgGetDependentAnnotationParameter(CGannotation ann, int index);
|
|
void cgEvaluateProgram(CGprogram program, float *buf, int ncomps, int nx, int ny, int nz);
|
|
CGbool cgSetEffectName(CGeffect effect, const char *name);
|
|
const char * cgGetEffectName(CGeffect effect);
|
|
CGeffect cgGetNamedEffect(CGcontext context, const char *name);
|
|
CGparameter cgCreateEffectParameter(CGeffect effect, const char *name, CGtype type);
|
|
CGtechnique cgCreateTechnique(CGeffect effect, const char *name);
|
|
CGparameter cgCreateEffectParameterArray(CGeffect effect, const char *name, CGtype type, int length);
|
|
CGparameter cgCreateEffectParameterMultiDimArray(CGeffect effect, const char *name, CGtype type, int dim, const int *lengths);
|
|
CGpass cgCreatePass(CGtechnique tech, const char *name);
|
|
CGstateassignment cgCreateStateAssignment(CGpass pass, CGstate state);
|
|
CGstateassignment cgCreateStateAssignmentIndex(CGpass pass, CGstate state, int index);
|
|
CGstateassignment cgCreateSamplerStateAssignment(CGparameter param, CGstate state);
|
|
CGbool cgSetFloatStateAssignment(CGstateassignment sa, float value);
|
|
CGbool cgSetIntStateAssignment(CGstateassignment sa, int value);
|
|
CGbool cgSetBoolStateAssignment(CGstateassignment sa, CGbool value);
|
|
CGbool cgSetStringStateAssignment(CGstateassignment sa, const char *value);
|
|
CGbool cgSetProgramStateAssignment(CGstateassignment sa, CGprogram program);
|
|
CGbool cgSetSamplerStateAssignment(CGstateassignment sa, CGparameter param);
|
|
CGbool cgSetTextureStateAssignment(CGstateassignment sa, CGparameter param);
|
|
CGbool cgSetFloatArrayStateAssignment(CGstateassignment sa, const float *vals);
|
|
CGbool cgSetIntArrayStateAssignment(CGstateassignment sa, const int *vals);
|
|
CGbool cgSetBoolArrayStateAssignment(CGstateassignment sa, const CGbool *vals);
|
|
CGannotation cgCreateTechniqueAnnotation(CGtechnique tech, const char *name, CGtype type);
|
|
CGannotation cgCreatePassAnnotation(CGpass pass, const char *name, CGtype type);
|
|
CGannotation cgCreateParameterAnnotation(CGparameter param, const char *name, CGtype type);
|
|
CGannotation cgCreateProgramAnnotation(CGprogram program, const char *name, CGtype type);
|
|
CGannotation cgCreateEffectAnnotation(CGeffect effect, const char *name, CGtype type);
|
|
CGbool cgSetIntAnnotation(CGannotation ann, int value);
|
|
CGbool cgSetFloatAnnotation(CGannotation ann, float value);
|
|
CGbool cgSetBoolAnnotation(CGannotation ann, CGbool value);
|
|
CGbool cgSetStringAnnotation(CGannotation ann, const char *value);
|
|
int cgGetNumStateEnumerants(CGstate state);
|
|
const char * cgGetStateEnumerant(CGstate state, int index, int *value);
|
|
const char * cgGetStateEnumerantName(CGstate state, int value);
|
|
int cgGetStateEnumerantValue(CGstate state, const char *name);
|
|
CGeffect cgGetParameterEffect(CGparameter param);
|
|
CGparameterclass cgGetTypeClass(CGtype type);
|
|
CGtype cgGetTypeBase(CGtype type);
|
|
CGbool cgGetTypeSizes(CGtype type, int *nrows, int *ncols);
|
|
void cgGetMatrixSize(CGtype type, int *nrows, int *ncols);
|
|
int cgGetNumProgramDomains(CGprogram program);
|
|
CGdomain cgGetProfileDomain(CGprofile profile);
|
|
CGprogram cgCombinePrograms(int n, const CGprogram *exeList);
|
|
CGprogram cgCombinePrograms2(const CGprogram exe1, const CGprogram exe2);
|
|
CGprogram cgCombinePrograms3(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3);
|
|
CGprogram cgCombinePrograms4(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3, const CGprogram exe4);
|
|
CGprogram cgCombinePrograms5(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3, const CGprogram exe4, const CGprogram exe5);
|
|
CGprofile cgGetProgramDomainProfile(CGprogram program, int index);
|
|
CGprogram cgGetProgramDomainProgram(CGprogram program, int index);
|
|
CGobj cgCreateObj(CGcontext context, CGenum program_type, const char *source, CGprofile profile, const char **args);
|
|
CGobj cgCreateObjFromFile(CGcontext context, CGenum program_type, const char *source_file, CGprofile profile, const char **args);
|
|
void cgDestroyObj(CGobj obj);
|
|
long cgGetParameterResourceSize(CGparameter param);
|
|
CGtype cgGetParameterResourceType(CGparameter param);
|
|
const char * cgGetParameterResourceName(CGparameter param);
|
|
int cgGetParameterBufferIndex(CGparameter param);
|
|
int cgGetParameterBufferOffset(CGparameter param);
|
|
CGbuffer cgCreateBuffer(CGcontext context, int size, const void *data, CGbufferusage bufferUsage);
|
|
void cgSetBufferData(CGbuffer buffer, int size, const void *data);
|
|
void cgSetBufferSubData(CGbuffer buffer, int offset, int size, const void *data);
|
|
void cgSetProgramBuffer(CGprogram program, int bufferIndex, CGbuffer buffer);
|
|
void * cgMapBuffer(CGbuffer buffer, CGbufferaccess access);
|
|
void cgUnmapBuffer(CGbuffer buffer);
|
|
void cgDestroyBuffer(CGbuffer buffer);
|
|
CGbuffer cgGetProgramBuffer(CGprogram program, int bufferIndex);
|
|
int cgGetBufferSize(CGbuffer buffer);
|
|
int cgGetProgramBufferMaxSize(CGprofile profile);
|
|
int cgGetProgramBufferMaxIndex(CGprofile profile);
|
|
CGbuffer cgGetEffectParameterBuffer(CGparameter param);
|
|
void cgSetEffectParameterBuffer(CGparameter param, CGbuffer buffer);
|
|
]]
|
|
--auto-generated api from ffi headers
|
|
local api =
|
|
{
|
|
["CGbehavior"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGtype"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGresource"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGprofile"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGerror"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGenum"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGparameterclass"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGdomain"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGbufferaccess"] = { type ='value', description = "", valuetype = nil, },
|
|
["CGbufferusage"] = { type ='value', description = "", valuetype = nil, },
|
|
["CG_BEHAVIOR_UNKNOWN"] = { type ='value', },
|
|
["CG_BEHAVIOR_LATEST"] = { type ='value', },
|
|
["CG_BEHAVIOR_2200"] = { type ='value', },
|
|
["CG_BEHAVIOR_3000"] = { type ='value', },
|
|
["CG_BEHAVIOR_CURRENT"] = { type ='value', },
|
|
["CG_UNKNOWN_TYPE"] = { type ='value', },
|
|
["CG_ARRAY"] = { type ='value', },
|
|
["CG_STRING"] = { type ='value', },
|
|
["CG_STRUCT"] = { type ='value', },
|
|
["CG_TYPELESS_STRUCT"] = { type ='value', },
|
|
["CG_TEXTURE"] = { type ='value', },
|
|
["CG_PIXELSHADER_TYPE"] = { type ='value', },
|
|
["CG_PROGRAM_TYPE"] = { type ='value', },
|
|
["CG_VERTEXSHADER_TYPE"] = { type ='value', },
|
|
["CG_TYPE_START_ENUM"] = { type ='value', },
|
|
["CG_SAMPLER"] = { type ='value', },
|
|
["CG_SAMPLER1D"] = { type ='value', },
|
|
["CG_SAMPLER1DARRAY"] = { type ='value', },
|
|
["CG_SAMPLER1DSHADOW"] = { type ='value', },
|
|
["CG_SAMPLER2D"] = { type ='value', },
|
|
["CG_SAMPLER2DARRAY"] = { type ='value', },
|
|
["CG_SAMPLER2DSHADOW"] = { type ='value', },
|
|
["CG_SAMPLER3D"] = { type ='value', },
|
|
["CG_SAMPLERBUF"] = { type ='value', },
|
|
["CG_SAMPLERCUBE"] = { type ='value', },
|
|
["CG_SAMPLERCUBEARRAY"] = { type ='value', },
|
|
["CG_SAMPLERRECT"] = { type ='value', },
|
|
["CG_SAMPLERRECTSHADOW"] = { type ='value', },
|
|
["CG_BOOL"] = { type ='value', },
|
|
["CG_BOOL1"] = { type ='value', },
|
|
["CG_BOOL2"] = { type ='value', },
|
|
["CG_BOOL3"] = { type ='value', },
|
|
["CG_BOOL4"] = { type ='value', },
|
|
["CG_BOOL1x1"] = { type ='value', },
|
|
["CG_BOOL1x2"] = { type ='value', },
|
|
["CG_BOOL1x3"] = { type ='value', },
|
|
["CG_BOOL1x4"] = { type ='value', },
|
|
["CG_BOOL2x1"] = { type ='value', },
|
|
["CG_BOOL2x2"] = { type ='value', },
|
|
["CG_BOOL2x3"] = { type ='value', },
|
|
["CG_BOOL2x4"] = { type ='value', },
|
|
["CG_BOOL3x1"] = { type ='value', },
|
|
["CG_BOOL3x2"] = { type ='value', },
|
|
["CG_BOOL3x3"] = { type ='value', },
|
|
["CG_BOOL3x4"] = { type ='value', },
|
|
["CG_BOOL4x1"] = { type ='value', },
|
|
["CG_BOOL4x2"] = { type ='value', },
|
|
["CG_BOOL4x3"] = { type ='value', },
|
|
["CG_BOOL4x4"] = { type ='value', },
|
|
["CG_CHAR"] = { type ='value', },
|
|
["CG_CHAR1"] = { type ='value', },
|
|
["CG_CHAR2"] = { type ='value', },
|
|
["CG_CHAR3"] = { type ='value', },
|
|
["CG_CHAR4"] = { type ='value', },
|
|
["CG_CHAR1x1"] = { type ='value', },
|
|
["CG_CHAR1x2"] = { type ='value', },
|
|
["CG_CHAR1x3"] = { type ='value', },
|
|
["CG_CHAR1x4"] = { type ='value', },
|
|
["CG_CHAR2x1"] = { type ='value', },
|
|
["CG_CHAR2x2"] = { type ='value', },
|
|
["CG_CHAR2x3"] = { type ='value', },
|
|
["CG_CHAR2x4"] = { type ='value', },
|
|
["CG_CHAR3x1"] = { type ='value', },
|
|
["CG_CHAR3x2"] = { type ='value', },
|
|
["CG_CHAR3x3"] = { type ='value', },
|
|
["CG_CHAR3x4"] = { type ='value', },
|
|
["CG_CHAR4x1"] = { type ='value', },
|
|
["CG_CHAR4x2"] = { type ='value', },
|
|
["CG_CHAR4x3"] = { type ='value', },
|
|
["CG_CHAR4x4"] = { type ='value', },
|
|
["CG_DOUBLE"] = { type ='value', },
|
|
["CG_DOUBLE1"] = { type ='value', },
|
|
["CG_DOUBLE2"] = { type ='value', },
|
|
["CG_DOUBLE3"] = { type ='value', },
|
|
["CG_DOUBLE4"] = { type ='value', },
|
|
["CG_DOUBLE1x1"] = { type ='value', },
|
|
["CG_DOUBLE1x2"] = { type ='value', },
|
|
["CG_DOUBLE1x3"] = { type ='value', },
|
|
["CG_DOUBLE1x4"] = { type ='value', },
|
|
["CG_DOUBLE2x1"] = { type ='value', },
|
|
["CG_DOUBLE2x2"] = { type ='value', },
|
|
["CG_DOUBLE2x3"] = { type ='value', },
|
|
["CG_DOUBLE2x4"] = { type ='value', },
|
|
["CG_DOUBLE3x1"] = { type ='value', },
|
|
["CG_DOUBLE3x2"] = { type ='value', },
|
|
["CG_DOUBLE3x3"] = { type ='value', },
|
|
["CG_DOUBLE3x4"] = { type ='value', },
|
|
["CG_DOUBLE4x1"] = { type ='value', },
|
|
["CG_DOUBLE4x2"] = { type ='value', },
|
|
["CG_DOUBLE4x3"] = { type ='value', },
|
|
["CG_DOUBLE4x4"] = { type ='value', },
|
|
["CG_FIXED"] = { type ='value', },
|
|
["CG_FIXED1"] = { type ='value', },
|
|
["CG_FIXED2"] = { type ='value', },
|
|
["CG_FIXED3"] = { type ='value', },
|
|
["CG_FIXED4"] = { type ='value', },
|
|
["CG_FIXED1x1"] = { type ='value', },
|
|
["CG_FIXED1x2"] = { type ='value', },
|
|
["CG_FIXED1x3"] = { type ='value', },
|
|
["CG_FIXED1x4"] = { type ='value', },
|
|
["CG_FIXED2x1"] = { type ='value', },
|
|
["CG_FIXED2x2"] = { type ='value', },
|
|
["CG_FIXED2x3"] = { type ='value', },
|
|
["CG_FIXED2x4"] = { type ='value', },
|
|
["CG_FIXED3x1"] = { type ='value', },
|
|
["CG_FIXED3x2"] = { type ='value', },
|
|
["CG_FIXED3x3"] = { type ='value', },
|
|
["CG_FIXED3x4"] = { type ='value', },
|
|
["CG_FIXED4x1"] = { type ='value', },
|
|
["CG_FIXED4x2"] = { type ='value', },
|
|
["CG_FIXED4x3"] = { type ='value', },
|
|
["CG_FIXED4x4"] = { type ='value', },
|
|
["CG_FLOAT"] = { type ='value', },
|
|
["CG_FLOAT1"] = { type ='value', },
|
|
["CG_FLOAT2"] = { type ='value', },
|
|
["CG_FLOAT3"] = { type ='value', },
|
|
["CG_FLOAT4"] = { type ='value', },
|
|
["CG_FLOAT1x1"] = { type ='value', },
|
|
["CG_FLOAT1x2"] = { type ='value', },
|
|
["CG_FLOAT1x3"] = { type ='value', },
|
|
["CG_FLOAT1x4"] = { type ='value', },
|
|
["CG_FLOAT2x1"] = { type ='value', },
|
|
["CG_FLOAT2x2"] = { type ='value', },
|
|
["CG_FLOAT2x3"] = { type ='value', },
|
|
["CG_FLOAT2x4"] = { type ='value', },
|
|
["CG_FLOAT3x1"] = { type ='value', },
|
|
["CG_FLOAT3x2"] = { type ='value', },
|
|
["CG_FLOAT3x3"] = { type ='value', },
|
|
["CG_FLOAT3x4"] = { type ='value', },
|
|
["CG_FLOAT4x1"] = { type ='value', },
|
|
["CG_FLOAT4x2"] = { type ='value', },
|
|
["CG_FLOAT4x3"] = { type ='value', },
|
|
["CG_FLOAT4x4"] = { type ='value', },
|
|
["CG_HALF"] = { type ='value', },
|
|
["CG_HALF1"] = { type ='value', },
|
|
["CG_HALF2"] = { type ='value', },
|
|
["CG_HALF3"] = { type ='value', },
|
|
["CG_HALF4"] = { type ='value', },
|
|
["CG_HALF1x1"] = { type ='value', },
|
|
["CG_HALF1x2"] = { type ='value', },
|
|
["CG_HALF1x3"] = { type ='value', },
|
|
["CG_HALF1x4"] = { type ='value', },
|
|
["CG_HALF2x1"] = { type ='value', },
|
|
["CG_HALF2x2"] = { type ='value', },
|
|
["CG_HALF2x3"] = { type ='value', },
|
|
["CG_HALF2x4"] = { type ='value', },
|
|
["CG_HALF3x1"] = { type ='value', },
|
|
["CG_HALF3x2"] = { type ='value', },
|
|
["CG_HALF3x3"] = { type ='value', },
|
|
["CG_HALF3x4"] = { type ='value', },
|
|
["CG_HALF4x1"] = { type ='value', },
|
|
["CG_HALF4x2"] = { type ='value', },
|
|
["CG_HALF4x3"] = { type ='value', },
|
|
["CG_HALF4x4"] = { type ='value', },
|
|
["CG_INT"] = { type ='value', },
|
|
["CG_INT1"] = { type ='value', },
|
|
["CG_INT2"] = { type ='value', },
|
|
["CG_INT3"] = { type ='value', },
|
|
["CG_INT4"] = { type ='value', },
|
|
["CG_INT1x1"] = { type ='value', },
|
|
["CG_INT1x2"] = { type ='value', },
|
|
["CG_INT1x3"] = { type ='value', },
|
|
["CG_INT1x4"] = { type ='value', },
|
|
["CG_INT2x1"] = { type ='value', },
|
|
["CG_INT2x2"] = { type ='value', },
|
|
["CG_INT2x3"] = { type ='value', },
|
|
["CG_INT2x4"] = { type ='value', },
|
|
["CG_INT3x1"] = { type ='value', },
|
|
["CG_INT3x2"] = { type ='value', },
|
|
["CG_INT3x3"] = { type ='value', },
|
|
["CG_INT3x4"] = { type ='value', },
|
|
["CG_INT4x1"] = { type ='value', },
|
|
["CG_INT4x2"] = { type ='value', },
|
|
["CG_INT4x3"] = { type ='value', },
|
|
["CG_INT4x4"] = { type ='value', },
|
|
["CG_LONG"] = { type ='value', },
|
|
["CG_LONG1"] = { type ='value', },
|
|
["CG_LONG2"] = { type ='value', },
|
|
["CG_LONG3"] = { type ='value', },
|
|
["CG_LONG4"] = { type ='value', },
|
|
["CG_LONG1x1"] = { type ='value', },
|
|
["CG_LONG1x2"] = { type ='value', },
|
|
["CG_LONG1x3"] = { type ='value', },
|
|
["CG_LONG1x4"] = { type ='value', },
|
|
["CG_LONG2x1"] = { type ='value', },
|
|
["CG_LONG2x2"] = { type ='value', },
|
|
["CG_LONG2x3"] = { type ='value', },
|
|
["CG_LONG2x4"] = { type ='value', },
|
|
["CG_LONG3x1"] = { type ='value', },
|
|
["CG_LONG3x2"] = { type ='value', },
|
|
["CG_LONG3x3"] = { type ='value', },
|
|
["CG_LONG3x4"] = { type ='value', },
|
|
["CG_LONG4x1"] = { type ='value', },
|
|
["CG_LONG4x2"] = { type ='value', },
|
|
["CG_LONG4x3"] = { type ='value', },
|
|
["CG_LONG4x4"] = { type ='value', },
|
|
["CG_SHORT"] = { type ='value', },
|
|
["CG_SHORT1"] = { type ='value', },
|
|
["CG_SHORT2"] = { type ='value', },
|
|
["CG_SHORT3"] = { type ='value', },
|
|
["CG_SHORT4"] = { type ='value', },
|
|
["CG_SHORT1x1"] = { type ='value', },
|
|
["CG_SHORT1x2"] = { type ='value', },
|
|
["CG_SHORT1x3"] = { type ='value', },
|
|
["CG_SHORT1x4"] = { type ='value', },
|
|
["CG_SHORT2x1"] = { type ='value', },
|
|
["CG_SHORT2x2"] = { type ='value', },
|
|
["CG_SHORT2x3"] = { type ='value', },
|
|
["CG_SHORT2x4"] = { type ='value', },
|
|
["CG_SHORT3x1"] = { type ='value', },
|
|
["CG_SHORT3x2"] = { type ='value', },
|
|
["CG_SHORT3x3"] = { type ='value', },
|
|
["CG_SHORT3x4"] = { type ='value', },
|
|
["CG_SHORT4x1"] = { type ='value', },
|
|
["CG_SHORT4x2"] = { type ='value', },
|
|
["CG_SHORT4x3"] = { type ='value', },
|
|
["CG_SHORT4x4"] = { type ='value', },
|
|
["CG_UCHAR"] = { type ='value', },
|
|
["CG_UCHAR1"] = { type ='value', },
|
|
["CG_UCHAR2"] = { type ='value', },
|
|
["CG_UCHAR3"] = { type ='value', },
|
|
["CG_UCHAR4"] = { type ='value', },
|
|
["CG_UCHAR1x1"] = { type ='value', },
|
|
["CG_UCHAR1x2"] = { type ='value', },
|
|
["CG_UCHAR1x3"] = { type ='value', },
|
|
["CG_UCHAR1x4"] = { type ='value', },
|
|
["CG_UCHAR2x1"] = { type ='value', },
|
|
["CG_UCHAR2x2"] = { type ='value', },
|
|
["CG_UCHAR2x3"] = { type ='value', },
|
|
["CG_UCHAR2x4"] = { type ='value', },
|
|
["CG_UCHAR3x1"] = { type ='value', },
|
|
["CG_UCHAR3x2"] = { type ='value', },
|
|
["CG_UCHAR3x3"] = { type ='value', },
|
|
["CG_UCHAR3x4"] = { type ='value', },
|
|
["CG_UCHAR4x1"] = { type ='value', },
|
|
["CG_UCHAR4x2"] = { type ='value', },
|
|
["CG_UCHAR4x3"] = { type ='value', },
|
|
["CG_UCHAR4x4"] = { type ='value', },
|
|
["CG_UINT"] = { type ='value', },
|
|
["CG_UINT1"] = { type ='value', },
|
|
["CG_UINT2"] = { type ='value', },
|
|
["CG_UINT3"] = { type ='value', },
|
|
["CG_UINT4"] = { type ='value', },
|
|
["CG_UINT1x1"] = { type ='value', },
|
|
["CG_UINT1x2"] = { type ='value', },
|
|
["CG_UINT1x3"] = { type ='value', },
|
|
["CG_UINT1x4"] = { type ='value', },
|
|
["CG_UINT2x1"] = { type ='value', },
|
|
["CG_UINT2x2"] = { type ='value', },
|
|
["CG_UINT2x3"] = { type ='value', },
|
|
["CG_UINT2x4"] = { type ='value', },
|
|
["CG_UINT3x1"] = { type ='value', },
|
|
["CG_UINT3x2"] = { type ='value', },
|
|
["CG_UINT3x3"] = { type ='value', },
|
|
["CG_UINT3x4"] = { type ='value', },
|
|
["CG_UINT4x1"] = { type ='value', },
|
|
["CG_UINT4x2"] = { type ='value', },
|
|
["CG_UINT4x3"] = { type ='value', },
|
|
["CG_UINT4x4"] = { type ='value', },
|
|
["CG_ULONG"] = { type ='value', },
|
|
["CG_ULONG1"] = { type ='value', },
|
|
["CG_ULONG2"] = { type ='value', },
|
|
["CG_ULONG3"] = { type ='value', },
|
|
["CG_ULONG4"] = { type ='value', },
|
|
["CG_ULONG1x1"] = { type ='value', },
|
|
["CG_ULONG1x2"] = { type ='value', },
|
|
["CG_ULONG1x3"] = { type ='value', },
|
|
["CG_ULONG1x4"] = { type ='value', },
|
|
["CG_ULONG2x1"] = { type ='value', },
|
|
["CG_ULONG2x2"] = { type ='value', },
|
|
["CG_ULONG2x3"] = { type ='value', },
|
|
["CG_ULONG2x4"] = { type ='value', },
|
|
["CG_ULONG3x1"] = { type ='value', },
|
|
["CG_ULONG3x2"] = { type ='value', },
|
|
["CG_ULONG3x3"] = { type ='value', },
|
|
["CG_ULONG3x4"] = { type ='value', },
|
|
["CG_ULONG4x1"] = { type ='value', },
|
|
["CG_ULONG4x2"] = { type ='value', },
|
|
["CG_ULONG4x3"] = { type ='value', },
|
|
["CG_ULONG4x4"] = { type ='value', },
|
|
["CG_USHORT"] = { type ='value', },
|
|
["CG_USHORT1"] = { type ='value', },
|
|
["CG_USHORT2"] = { type ='value', },
|
|
["CG_USHORT3"] = { type ='value', },
|
|
["CG_USHORT4"] = { type ='value', },
|
|
["CG_USHORT1x1"] = { type ='value', },
|
|
["CG_USHORT1x2"] = { type ='value', },
|
|
["CG_USHORT1x3"] = { type ='value', },
|
|
["CG_USHORT1x4"] = { type ='value', },
|
|
["CG_USHORT2x1"] = { type ='value', },
|
|
["CG_USHORT2x2"] = { type ='value', },
|
|
["CG_USHORT2x3"] = { type ='value', },
|
|
["CG_USHORT2x4"] = { type ='value', },
|
|
["CG_USHORT3x1"] = { type ='value', },
|
|
["CG_USHORT3x2"] = { type ='value', },
|
|
["CG_USHORT3x3"] = { type ='value', },
|
|
["CG_USHORT3x4"] = { type ='value', },
|
|
["CG_USHORT4x1"] = { type ='value', },
|
|
["CG_USHORT4x2"] = { type ='value', },
|
|
["CG_USHORT4x3"] = { type ='value', },
|
|
["CG_USHORT4x4"] = { type ='value', },
|
|
["CG_TEXUNIT0"] = { type ='value', },
|
|
["CG_TEXUNIT1"] = { type ='value', },
|
|
["CG_TEXUNIT2"] = { type ='value', },
|
|
["CG_TEXUNIT3"] = { type ='value', },
|
|
["CG_TEXUNIT4"] = { type ='value', },
|
|
["CG_TEXUNIT5"] = { type ='value', },
|
|
["CG_TEXUNIT6"] = { type ='value', },
|
|
["CG_TEXUNIT7"] = { type ='value', },
|
|
["CG_TEXUNIT8"] = { type ='value', },
|
|
["CG_TEXUNIT9"] = { type ='value', },
|
|
["CG_TEXUNIT10"] = { type ='value', },
|
|
["CG_TEXUNIT11"] = { type ='value', },
|
|
["CG_TEXUNIT12"] = { type ='value', },
|
|
["CG_TEXUNIT13"] = { type ='value', },
|
|
["CG_TEXUNIT14"] = { type ='value', },
|
|
["CG_TEXUNIT15"] = { type ='value', },
|
|
["CG_TEXUNIT16"] = { type ='value', },
|
|
["CG_TEXUNIT17"] = { type ='value', },
|
|
["CG_TEXUNIT18"] = { type ='value', },
|
|
["CG_TEXUNIT19"] = { type ='value', },
|
|
["CG_TEXUNIT20"] = { type ='value', },
|
|
["CG_TEXUNIT21"] = { type ='value', },
|
|
["CG_TEXUNIT22"] = { type ='value', },
|
|
["CG_TEXUNIT23"] = { type ='value', },
|
|
["CG_TEXUNIT24"] = { type ='value', },
|
|
["CG_TEXUNIT25"] = { type ='value', },
|
|
["CG_TEXUNIT26"] = { type ='value', },
|
|
["CG_TEXUNIT27"] = { type ='value', },
|
|
["CG_TEXUNIT28"] = { type ='value', },
|
|
["CG_TEXUNIT29"] = { type ='value', },
|
|
["CG_TEXUNIT30"] = { type ='value', },
|
|
["CG_TEXUNIT31"] = { type ='value', },
|
|
["CG_BUFFER0"] = { type ='value', },
|
|
["CG_BUFFER1"] = { type ='value', },
|
|
["CG_BUFFER2"] = { type ='value', },
|
|
["CG_BUFFER3"] = { type ='value', },
|
|
["CG_BUFFER4"] = { type ='value', },
|
|
["CG_BUFFER5"] = { type ='value', },
|
|
["CG_BUFFER6"] = { type ='value', },
|
|
["CG_BUFFER7"] = { type ='value', },
|
|
["CG_BUFFER8"] = { type ='value', },
|
|
["CG_BUFFER9"] = { type ='value', },
|
|
["CG_BUFFER10"] = { type ='value', },
|
|
["CG_BUFFER11"] = { type ='value', },
|
|
["CG_ATTR0"] = { type ='value', },
|
|
["CG_ATTR1"] = { type ='value', },
|
|
["CG_ATTR2"] = { type ='value', },
|
|
["CG_ATTR3"] = { type ='value', },
|
|
["CG_ATTR4"] = { type ='value', },
|
|
["CG_ATTR5"] = { type ='value', },
|
|
["CG_ATTR6"] = { type ='value', },
|
|
["CG_ATTR7"] = { type ='value', },
|
|
["CG_ATTR8"] = { type ='value', },
|
|
["CG_ATTR9"] = { type ='value', },
|
|
["CG_ATTR10"] = { type ='value', },
|
|
["CG_ATTR11"] = { type ='value', },
|
|
["CG_ATTR12"] = { type ='value', },
|
|
["CG_ATTR13"] = { type ='value', },
|
|
["CG_ATTR14"] = { type ='value', },
|
|
["CG_ATTR15"] = { type ='value', },
|
|
["CG_C"] = { type ='value', },
|
|
["CG_TEX0"] = { type ='value', },
|
|
["CG_TEX1"] = { type ='value', },
|
|
["CG_TEX2"] = { type ='value', },
|
|
["CG_TEX3"] = { type ='value', },
|
|
["CG_TEX4"] = { type ='value', },
|
|
["CG_TEX5"] = { type ='value', },
|
|
["CG_TEX6"] = { type ='value', },
|
|
["CG_TEX7"] = { type ='value', },
|
|
["CG_HPOS"] = { type ='value', },
|
|
["CG_COL0"] = { type ='value', },
|
|
["CG_COL1"] = { type ='value', },
|
|
["CG_COL2"] = { type ='value', },
|
|
["CG_COL3"] = { type ='value', },
|
|
["CG_PSIZ"] = { type ='value', },
|
|
["CG_CLP0"] = { type ='value', },
|
|
["CG_CLP1"] = { type ='value', },
|
|
["CG_CLP2"] = { type ='value', },
|
|
["CG_CLP3"] = { type ='value', },
|
|
["CG_CLP4"] = { type ='value', },
|
|
["CG_CLP5"] = { type ='value', },
|
|
["CG_WPOS"] = { type ='value', },
|
|
["CG_POINTCOORD"] = { type ='value', },
|
|
["CG_POSITION0"] = { type ='value', },
|
|
["CG_POSITION1"] = { type ='value', },
|
|
["CG_POSITION2"] = { type ='value', },
|
|
["CG_POSITION3"] = { type ='value', },
|
|
["CG_POSITION4"] = { type ='value', },
|
|
["CG_POSITION5"] = { type ='value', },
|
|
["CG_POSITION6"] = { type ='value', },
|
|
["CG_POSITION7"] = { type ='value', },
|
|
["CG_POSITION8"] = { type ='value', },
|
|
["CG_POSITION9"] = { type ='value', },
|
|
["CG_POSITION10"] = { type ='value', },
|
|
["CG_POSITION11"] = { type ='value', },
|
|
["CG_POSITION12"] = { type ='value', },
|
|
["CG_POSITION13"] = { type ='value', },
|
|
["CG_POSITION14"] = { type ='value', },
|
|
["CG_POSITION15"] = { type ='value', },
|
|
["CG_DIFFUSE0"] = { type ='value', },
|
|
["CG_TANGENT0"] = { type ='value', },
|
|
["CG_TANGENT1"] = { type ='value', },
|
|
["CG_TANGENT2"] = { type ='value', },
|
|
["CG_TANGENT3"] = { type ='value', },
|
|
["CG_TANGENT4"] = { type ='value', },
|
|
["CG_TANGENT5"] = { type ='value', },
|
|
["CG_TANGENT6"] = { type ='value', },
|
|
["CG_TANGENT7"] = { type ='value', },
|
|
["CG_TANGENT8"] = { type ='value', },
|
|
["CG_TANGENT9"] = { type ='value', },
|
|
["CG_TANGENT10"] = { type ='value', },
|
|
["CG_TANGENT11"] = { type ='value', },
|
|
["CG_TANGENT12"] = { type ='value', },
|
|
["CG_TANGENT13"] = { type ='value', },
|
|
["CG_TANGENT14"] = { type ='value', },
|
|
["CG_TANGENT15"] = { type ='value', },
|
|
["CG_SPECULAR0"] = { type ='value', },
|
|
["CG_BLENDINDICES0"] = { type ='value', },
|
|
["CG_BLENDINDICES1"] = { type ='value', },
|
|
["CG_BLENDINDICES2"] = { type ='value', },
|
|
["CG_BLENDINDICES3"] = { type ='value', },
|
|
["CG_BLENDINDICES4"] = { type ='value', },
|
|
["CG_BLENDINDICES5"] = { type ='value', },
|
|
["CG_BLENDINDICES6"] = { type ='value', },
|
|
["CG_BLENDINDICES7"] = { type ='value', },
|
|
["CG_BLENDINDICES8"] = { type ='value', },
|
|
["CG_BLENDINDICES9"] = { type ='value', },
|
|
["CG_BLENDINDICES10"] = { type ='value', },
|
|
["CG_BLENDINDICES11"] = { type ='value', },
|
|
["CG_BLENDINDICES12"] = { type ='value', },
|
|
["CG_BLENDINDICES13"] = { type ='value', },
|
|
["CG_BLENDINDICES14"] = { type ='value', },
|
|
["CG_BLENDINDICES15"] = { type ='value', },
|
|
["CG_COLOR0"] = { type ='value', },
|
|
["CG_COLOR1"] = { type ='value', },
|
|
["CG_COLOR2"] = { type ='value', },
|
|
["CG_COLOR3"] = { type ='value', },
|
|
["CG_COLOR4"] = { type ='value', },
|
|
["CG_COLOR5"] = { type ='value', },
|
|
["CG_COLOR6"] = { type ='value', },
|
|
["CG_COLOR7"] = { type ='value', },
|
|
["CG_COLOR8"] = { type ='value', },
|
|
["CG_COLOR9"] = { type ='value', },
|
|
["CG_COLOR10"] = { type ='value', },
|
|
["CG_COLOR11"] = { type ='value', },
|
|
["CG_COLOR12"] = { type ='value', },
|
|
["CG_COLOR13"] = { type ='value', },
|
|
["CG_COLOR14"] = { type ='value', },
|
|
["CG_COLOR15"] = { type ='value', },
|
|
["CG_PSIZE0"] = { type ='value', },
|
|
["CG_PSIZE1"] = { type ='value', },
|
|
["CG_PSIZE2"] = { type ='value', },
|
|
["CG_PSIZE3"] = { type ='value', },
|
|
["CG_PSIZE4"] = { type ='value', },
|
|
["CG_PSIZE5"] = { type ='value', },
|
|
["CG_PSIZE6"] = { type ='value', },
|
|
["CG_PSIZE7"] = { type ='value', },
|
|
["CG_PSIZE8"] = { type ='value', },
|
|
["CG_PSIZE9"] = { type ='value', },
|
|
["CG_PSIZE10"] = { type ='value', },
|
|
["CG_PSIZE11"] = { type ='value', },
|
|
["CG_PSIZE12"] = { type ='value', },
|
|
["CG_PSIZE13"] = { type ='value', },
|
|
["CG_PSIZE14"] = { type ='value', },
|
|
["CG_PSIZE15"] = { type ='value', },
|
|
["CG_BINORMAL0"] = { type ='value', },
|
|
["CG_BINORMAL1"] = { type ='value', },
|
|
["CG_BINORMAL2"] = { type ='value', },
|
|
["CG_BINORMAL3"] = { type ='value', },
|
|
["CG_BINORMAL4"] = { type ='value', },
|
|
["CG_BINORMAL5"] = { type ='value', },
|
|
["CG_BINORMAL6"] = { type ='value', },
|
|
["CG_BINORMAL7"] = { type ='value', },
|
|
["CG_BINORMAL8"] = { type ='value', },
|
|
["CG_BINORMAL9"] = { type ='value', },
|
|
["CG_BINORMAL10"] = { type ='value', },
|
|
["CG_BINORMAL11"] = { type ='value', },
|
|
["CG_BINORMAL12"] = { type ='value', },
|
|
["CG_BINORMAL13"] = { type ='value', },
|
|
["CG_BINORMAL14"] = { type ='value', },
|
|
["CG_BINORMAL15"] = { type ='value', },
|
|
["CG_FOG0"] = { type ='value', },
|
|
["CG_FOG1"] = { type ='value', },
|
|
["CG_FOG2"] = { type ='value', },
|
|
["CG_FOG3"] = { type ='value', },
|
|
["CG_FOG4"] = { type ='value', },
|
|
["CG_FOG5"] = { type ='value', },
|
|
["CG_FOG6"] = { type ='value', },
|
|
["CG_FOG7"] = { type ='value', },
|
|
["CG_FOG8"] = { type ='value', },
|
|
["CG_FOG9"] = { type ='value', },
|
|
["CG_FOG10"] = { type ='value', },
|
|
["CG_FOG11"] = { type ='value', },
|
|
["CG_FOG12"] = { type ='value', },
|
|
["CG_FOG13"] = { type ='value', },
|
|
["CG_FOG14"] = { type ='value', },
|
|
["CG_FOG15"] = { type ='value', },
|
|
["CG_DEPTH0"] = { type ='value', },
|
|
["CG_DEPTH1"] = { type ='value', },
|
|
["CG_DEPTH2"] = { type ='value', },
|
|
["CG_DEPTH3"] = { type ='value', },
|
|
["CG_DEPTH4"] = { type ='value', },
|
|
["CG_DEPTH5"] = { type ='value', },
|
|
["CG_DEPTH6"] = { type ='value', },
|
|
["CG_DEPTH7"] = { type ='value', },
|
|
["CG_DEPTH8"] = { type ='value', },
|
|
["CG_DEPTH9"] = { type ='value', },
|
|
["CG_DEPTH10"] = { type ='value', },
|
|
["CG_DEPTH11"] = { type ='value', },
|
|
["CG_DEPTH12"] = { type ='value', },
|
|
["CG_DEPTH13"] = { type ='value', },
|
|
["CG_DEPTH14"] = { type ='value', },
|
|
["CG_DEPTH15"] = { type ='value', },
|
|
["CG_SAMPLE0"] = { type ='value', },
|
|
["CG_SAMPLE1"] = { type ='value', },
|
|
["CG_SAMPLE2"] = { type ='value', },
|
|
["CG_SAMPLE3"] = { type ='value', },
|
|
["CG_SAMPLE4"] = { type ='value', },
|
|
["CG_SAMPLE5"] = { type ='value', },
|
|
["CG_SAMPLE6"] = { type ='value', },
|
|
["CG_SAMPLE7"] = { type ='value', },
|
|
["CG_SAMPLE8"] = { type ='value', },
|
|
["CG_SAMPLE9"] = { type ='value', },
|
|
["CG_SAMPLE10"] = { type ='value', },
|
|
["CG_SAMPLE11"] = { type ='value', },
|
|
["CG_SAMPLE12"] = { type ='value', },
|
|
["CG_SAMPLE13"] = { type ='value', },
|
|
["CG_SAMPLE14"] = { type ='value', },
|
|
["CG_SAMPLE15"] = { type ='value', },
|
|
["CG_BLENDWEIGHT0"] = { type ='value', },
|
|
["CG_BLENDWEIGHT1"] = { type ='value', },
|
|
["CG_BLENDWEIGHT2"] = { type ='value', },
|
|
["CG_BLENDWEIGHT3"] = { type ='value', },
|
|
["CG_BLENDWEIGHT4"] = { type ='value', },
|
|
["CG_BLENDWEIGHT5"] = { type ='value', },
|
|
["CG_BLENDWEIGHT6"] = { type ='value', },
|
|
["CG_BLENDWEIGHT7"] = { type ='value', },
|
|
["CG_BLENDWEIGHT8"] = { type ='value', },
|
|
["CG_BLENDWEIGHT9"] = { type ='value', },
|
|
["CG_BLENDWEIGHT10"] = { type ='value', },
|
|
["CG_BLENDWEIGHT11"] = { type ='value', },
|
|
["CG_BLENDWEIGHT12"] = { type ='value', },
|
|
["CG_BLENDWEIGHT13"] = { type ='value', },
|
|
["CG_BLENDWEIGHT14"] = { type ='value', },
|
|
["CG_BLENDWEIGHT15"] = { type ='value', },
|
|
["CG_NORMAL0"] = { type ='value', },
|
|
["CG_NORMAL1"] = { type ='value', },
|
|
["CG_NORMAL2"] = { type ='value', },
|
|
["CG_NORMAL3"] = { type ='value', },
|
|
["CG_NORMAL4"] = { type ='value', },
|
|
["CG_NORMAL5"] = { type ='value', },
|
|
["CG_NORMAL6"] = { type ='value', },
|
|
["CG_NORMAL7"] = { type ='value', },
|
|
["CG_NORMAL8"] = { type ='value', },
|
|
["CG_NORMAL9"] = { type ='value', },
|
|
["CG_NORMAL10"] = { type ='value', },
|
|
["CG_NORMAL11"] = { type ='value', },
|
|
["CG_NORMAL12"] = { type ='value', },
|
|
["CG_NORMAL13"] = { type ='value', },
|
|
["CG_NORMAL14"] = { type ='value', },
|
|
["CG_NORMAL15"] = { type ='value', },
|
|
["CG_FOGCOORD"] = { type ='value', },
|
|
["CG_TEXCOORD0"] = { type ='value', },
|
|
["CG_TEXCOORD1"] = { type ='value', },
|
|
["CG_TEXCOORD2"] = { type ='value', },
|
|
["CG_TEXCOORD3"] = { type ='value', },
|
|
["CG_TEXCOORD4"] = { type ='value', },
|
|
["CG_TEXCOORD5"] = { type ='value', },
|
|
["CG_TEXCOORD6"] = { type ='value', },
|
|
["CG_TEXCOORD7"] = { type ='value', },
|
|
["CG_TEXCOORD8"] = { type ='value', },
|
|
["CG_TEXCOORD9"] = { type ='value', },
|
|
["CG_TEXCOORD10"] = { type ='value', },
|
|
["CG_TEXCOORD11"] = { type ='value', },
|
|
["CG_TEXCOORD12"] = { type ='value', },
|
|
["CG_TEXCOORD13"] = { type ='value', },
|
|
["CG_TEXCOORD14"] = { type ='value', },
|
|
["CG_TEXCOORD15"] = { type ='value', },
|
|
["CG_COMBINER_CONST0"] = { type ='value', },
|
|
["CG_COMBINER_CONST1"] = { type ='value', },
|
|
["CG_COMBINER_STAGE_CONST0"] = { type ='value', },
|
|
["CG_COMBINER_STAGE_CONST1"] = { type ='value', },
|
|
["CG_OFFSET_TEXTURE_MATRIX"] = { type ='value', },
|
|
["CG_OFFSET_TEXTURE_SCALE"] = { type ='value', },
|
|
["CG_OFFSET_TEXTURE_BIAS"] = { type ='value', },
|
|
["CG_CONST_EYE"] = { type ='value', },
|
|
["CG_COVERAGE"] = { type ='value', },
|
|
["CG_TESSFACTOR"] = { type ='value', },
|
|
["CG_GLSL_UNIFORM"] = { type ='value', },
|
|
["CG_GLSL_ATTRIB"] = { type ='value', },
|
|
["CG_ENV"] = { type ='value', },
|
|
["CG_HLSL_UNIFORM"] = { type ='value', },
|
|
["CG_HLSL_VARYING"] = { type ='value', },
|
|
["CG_SAMPLER_RES"] = { type ='value', },
|
|
["CG_LASTCOL0"] = { type ='value', },
|
|
["CG_LASTCOL1"] = { type ='value', },
|
|
["CG_LASTCOL2"] = { type ='value', },
|
|
["CG_LASTCOL3"] = { type ='value', },
|
|
["CG_LASTCOL4"] = { type ='value', },
|
|
["CG_LASTCOL5"] = { type ='value', },
|
|
["CG_LASTCOL6"] = { type ='value', },
|
|
["CG_LASTCOL7"] = { type ='value', },
|
|
["CG_FACE"] = { type ='value', },
|
|
["CG_PRIMITIVEID"] = { type ='value', },
|
|
["CG_INSTANCEID"] = { type ='value', },
|
|
["CG_SAMPLEID"] = { type ='value', },
|
|
["CG_VERTEXID"] = { type ='value', },
|
|
["CG_LAYER"] = { type ='value', },
|
|
["CG_SAMPLEMASK"] = { type ='value', },
|
|
["CG_CONTROLPOINTID"] = { type ='value', },
|
|
["CG_EDGETESS"] = { type ='value', },
|
|
["CG_INNERTESS"] = { type ='value', },
|
|
["CG_UNDEFINED"] = { type ='value', },
|
|
["CG_PROFILE_UNKNOWN"] = { type ='value', },
|
|
["CG_PROFILE_VP20"] = { type ='value', },
|
|
["CG_PROFILE_FP20"] = { type ='value', },
|
|
["CG_PROFILE_VP30"] = { type ='value', },
|
|
["CG_PROFILE_FP30"] = { type ='value', },
|
|
["CG_PROFILE_ARBVP1"] = { type ='value', },
|
|
["CG_PROFILE_FP40"] = { type ='value', },
|
|
["CG_PROFILE_ARBFP1"] = { type ='value', },
|
|
["CG_PROFILE_VP40"] = { type ='value', },
|
|
["CG_PROFILE_GLSLV"] = { type ='value', },
|
|
["CG_PROFILE_GLSLF"] = { type ='value', },
|
|
["CG_PROFILE_GLSLG"] = { type ='value', },
|
|
["CG_PROFILE_GLSLC"] = { type ='value', },
|
|
["CG_PROFILE_GPU_FP"] = { type ='value', },
|
|
["CG_PROFILE_GPU_VP"] = { type ='value', },
|
|
["CG_PROFILE_GPU_GP"] = { type ='value', },
|
|
["CG_PROFILE_GP4FP"] = { type ='value', },
|
|
["CG_PROFILE_GP4VP"] = { type ='value', },
|
|
["CG_PROFILE_GP4GP"] = { type ='value', },
|
|
["CG_PROFILE_GP5FP"] = { type ='value', },
|
|
["CG_PROFILE_GP5VP"] = { type ='value', },
|
|
["CG_PROFILE_GP5GP"] = { type ='value', },
|
|
["CG_PROFILE_GP5TCP"] = { type ='value', },
|
|
["CG_PROFILE_GP5TEP"] = { type ='value', },
|
|
["CG_PROFILE_VS_1_1"] = { type ='value', },
|
|
["CG_PROFILE_VS_2_0"] = { type ='value', },
|
|
["CG_PROFILE_VS_2_X"] = { type ='value', },
|
|
["CG_PROFILE_VS_2_SW"] = { type ='value', },
|
|
["CG_PROFILE_PS_1_1"] = { type ='value', },
|
|
["CG_PROFILE_PS_1_2"] = { type ='value', },
|
|
["CG_PROFILE_PS_1_3"] = { type ='value', },
|
|
["CG_PROFILE_PS_2_0"] = { type ='value', },
|
|
["CG_PROFILE_PS_2_X"] = { type ='value', },
|
|
["CG_PROFILE_PS_2_SW"] = { type ='value', },
|
|
["CG_PROFILE_VS_3_0"] = { type ='value', },
|
|
["CG_PROFILE_PS_3_0"] = { type ='value', },
|
|
["CG_PROFILE_HLSLV"] = { type ='value', },
|
|
["CG_PROFILE_HLSLF"] = { type ='value', },
|
|
["CG_PROFILE_VS_4_0"] = { type ='value', },
|
|
["CG_PROFILE_PS_4_0"] = { type ='value', },
|
|
["CG_PROFILE_GS_4_0"] = { type ='value', },
|
|
["CG_PROFILE_VS_5_0"] = { type ='value', },
|
|
["CG_PROFILE_PS_5_0"] = { type ='value', },
|
|
["CG_PROFILE_GS_5_0"] = { type ='value', },
|
|
["CG_PROFILE_HS_5_0"] = { type ='value', },
|
|
["CG_PROFILE_DS_5_0"] = { type ='value', },
|
|
["CG_PROFILE_GENERIC"] = { type ='value', },
|
|
["CG_NO_ERROR"] = { type ='value', },
|
|
["CG_COMPILER_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PARAMETER_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PROFILE_ERROR"] = { type ='value', },
|
|
["CG_PROGRAM_LOAD_ERROR"] = { type ='value', },
|
|
["CG_PROGRAM_BIND_ERROR"] = { type ='value', },
|
|
["CG_PROGRAM_NOT_LOADED_ERROR"] = { type ='value', },
|
|
["CG_UNSUPPORTED_GL_EXTENSION_ERROR"] = { type ='value', },
|
|
["CG_INVALID_VALUE_TYPE_ERROR"] = { type ='value', },
|
|
["CG_NOT_MATRIX_PARAM_ERROR"] = { type ='value', },
|
|
["CG_INVALID_ENUMERANT_ERROR"] = { type ='value', },
|
|
["CG_NOT_4x4_MATRIX_ERROR"] = { type ='value', },
|
|
["CG_FILE_READ_ERROR"] = { type ='value', },
|
|
["CG_FILE_WRITE_ERROR"] = { type ='value', },
|
|
["CG_NVPARSE_ERROR"] = { type ='value', },
|
|
["CG_MEMORY_ALLOC_ERROR"] = { type ='value', },
|
|
["CG_INVALID_CONTEXT_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PROGRAM_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PARAM_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_UNKNOWN_PROFILE_ERROR"] = { type ='value', },
|
|
["CG_VAR_ARG_ERROR"] = { type ='value', },
|
|
["CG_INVALID_DIMENSION_ERROR"] = { type ='value', },
|
|
["CG_ARRAY_PARAM_ERROR"] = { type ='value', },
|
|
["CG_OUT_OF_ARRAY_BOUNDS_ERROR"] = { type ='value', },
|
|
["CG_CONFLICTING_TYPES_ERROR"] = { type ='value', },
|
|
["CG_CONFLICTING_PARAMETER_TYPES_ERROR"] = { type ='value', },
|
|
["CG_PARAMETER_IS_NOT_SHARED_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PARAMETER_VARIABILITY_ERROR"] = { type ='value', },
|
|
["CG_CANNOT_DESTROY_PARAMETER_ERROR"] = { type ='value', },
|
|
["CG_NOT_ROOT_PARAMETER_ERROR"] = { type ='value', },
|
|
["CG_PARAMETERS_DO_NOT_MATCH_ERROR"] = { type ='value', },
|
|
["CG_IS_NOT_PROGRAM_PARAMETER_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PARAMETER_TYPE_ERROR"] = { type ='value', },
|
|
["CG_PARAMETER_IS_NOT_RESIZABLE_ARRAY_ERROR"] = { type ='value', },
|
|
["CG_INVALID_SIZE_ERROR"] = { type ='value', },
|
|
["CG_BIND_CREATES_CYCLE_ERROR"] = { type ='value', },
|
|
["CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR"] = { type ='value', },
|
|
["CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR"] = { type ='value', },
|
|
["CG_ARRAY_HAS_WRONG_DIMENSION_ERROR"] = { type ='value', },
|
|
["CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR"] = { type ='value', },
|
|
["CG_INVALID_EFFECT_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_STATE_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PASS_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_ANNOTATION_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_TECHNIQUE_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_PARAMETER_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR"] = { type ='value', },
|
|
["CG_INVALID_FUNCTION_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_TECHNIQUE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_POINTER_ERROR"] = { type ='value', },
|
|
["CG_NOT_ENOUGH_DATA_ERROR"] = { type ='value', },
|
|
["CG_NON_NUMERIC_PARAMETER_ERROR"] = { type ='value', },
|
|
["CG_ARRAY_SIZE_MISMATCH_ERROR"] = { type ='value', },
|
|
["CG_CANNOT_SET_NON_UNIFORM_PARAMETER_ERROR"] = { type ='value', },
|
|
["CG_DUPLICATE_NAME_ERROR"] = { type ='value', },
|
|
["CG_INVALID_OBJ_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_INVALID_BUFFER_HANDLE_ERROR"] = { type ='value', },
|
|
["CG_BUFFER_INDEX_OUT_OF_RANGE_ERROR"] = { type ='value', },
|
|
["CG_BUFFER_ALREADY_MAPPED_ERROR"] = { type ='value', },
|
|
["CG_BUFFER_UPDATE_NOT_ALLOWED_ERROR"] = { type ='value', },
|
|
["CG_GLSLG_UNCOMBINED_LOAD_ERROR"] = { type ='value', },
|
|
["CG_UNKNOWN"] = { type ='value', },
|
|
["CG_IN"] = { type ='value', },
|
|
["CG_OUT"] = { type ='value', },
|
|
["CG_INOUT"] = { type ='value', },
|
|
["CG_MIXED"] = { type ='value', },
|
|
["CG_VARYING"] = { type ='value', },
|
|
["CG_UNIFORM"] = { type ='value', },
|
|
["CG_CONSTANT"] = { type ='value', },
|
|
["CG_PROGRAM_SOURCE"] = { type ='value', },
|
|
["CG_PROGRAM_ENTRY"] = { type ='value', },
|
|
["CG_COMPILED_PROGRAM"] = { type ='value', },
|
|
["CG_PROGRAM_PROFILE"] = { type ='value', },
|
|
["CG_GLOBAL"] = { type ='value', },
|
|
["CG_PROGRAM"] = { type ='value', },
|
|
["CG_DEFAULT"] = { type ='value', },
|
|
["CG_ERROR"] = { type ='value', },
|
|
["CG_SOURCE"] = { type ='value', },
|
|
["CG_OBJECT"] = { type ='value', },
|
|
["CG_COMPILE_MANUAL"] = { type ='value', },
|
|
["CG_COMPILE_IMMEDIATE"] = { type ='value', },
|
|
["CG_COMPILE_LAZY"] = { type ='value', },
|
|
["CG_CURRENT"] = { type ='value', },
|
|
["CG_LITERAL"] = { type ='value', },
|
|
["CG_VERSION"] = { type ='value', },
|
|
["CG_ROW_MAJOR"] = { type ='value', },
|
|
["CG_COLUMN_MAJOR"] = { type ='value', },
|
|
["CG_FRAGMENT"] = { type ='value', },
|
|
["CG_VERTEX"] = { type ='value', },
|
|
["CG_POINT"] = { type ='value', },
|
|
["CG_LINE"] = { type ='value', },
|
|
["CG_LINE_ADJ"] = { type ='value', },
|
|
["CG_TRIANGLE"] = { type ='value', },
|
|
["CG_TRIANGLE_ADJ"] = { type ='value', },
|
|
["CG_POINT_OUT"] = { type ='value', },
|
|
["CG_LINE_OUT"] = { type ='value', },
|
|
["CG_TRIANGLE_OUT"] = { type ='value', },
|
|
["CG_IMMEDIATE_PARAMETER_SETTING"] = { type ='value', },
|
|
["CG_DEFERRED_PARAMETER_SETTING"] = { type ='value', },
|
|
["CG_NO_LOCKS_POLICY"] = { type ='value', },
|
|
["CG_THREAD_SAFE_POLICY"] = { type ='value', },
|
|
["CG_FORCE_UPPER_CASE_POLICY"] = { type ='value', },
|
|
["CG_UNCHANGED_CASE_POLICY"] = { type ='value', },
|
|
["CG_IS_OPENGL_PROFILE"] = { type ='value', },
|
|
["CG_IS_DIRECT3D_PROFILE"] = { type ='value', },
|
|
["CG_IS_DIRECT3D_8_PROFILE"] = { type ='value', },
|
|
["CG_IS_DIRECT3D_9_PROFILE"] = { type ='value', },
|
|
["CG_IS_DIRECT3D_10_PROFILE"] = { type ='value', },
|
|
["CG_IS_VERTEX_PROFILE"] = { type ='value', },
|
|
["CG_IS_FRAGMENT_PROFILE"] = { type ='value', },
|
|
["CG_IS_GEOMETRY_PROFILE"] = { type ='value', },
|
|
["CG_IS_TRANSLATION_PROFILE"] = { type ='value', },
|
|
["CG_IS_HLSL_PROFILE"] = { type ='value', },
|
|
["CG_IS_GLSL_PROFILE"] = { type ='value', },
|
|
["CG_IS_TESSELLATION_CONTROL_PROFILE"] = { type ='value', },
|
|
["CG_IS_TESSELLATION_EVALUATION_PROFILE"] = { type ='value', },
|
|
["CG_PATCH"] = { type ='value', },
|
|
["CG_IS_DIRECT3D_11_PROFILE"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_UNKNOWN"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_SCALAR"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_VECTOR"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_MATRIX"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_STRUCT"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_ARRAY"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_SAMPLER"] = { type ='value', },
|
|
["CG_PARAMETERCLASS_OBJECT"] = { type ='value', },
|
|
["CG_UNKNOWN_DOMAIN"] = { type ='value', },
|
|
["CG_FIRST_DOMAIN"] = { type ='value', },
|
|
["CG_VERTEX_DOMAIN"] = { type ='value', },
|
|
["CG_FRAGMENT_DOMAIN"] = { type ='value', },
|
|
["CG_GEOMETRY_DOMAIN"] = { type ='value', },
|
|
["CG_TESSELLATION_CONTROL_DOMAIN"] = { type ='value', },
|
|
["CG_TESSELLATION_EVALUATION_DOMAIN"] = { type ='value', },
|
|
["CG_MAP_READ"] = { type ='value', },
|
|
["CG_MAP_WRITE"] = { type ='value', },
|
|
["CG_MAP_READ_WRITE"] = { type ='value', },
|
|
["CG_MAP_WRITE_DISCARD"] = { type ='value', },
|
|
["CG_MAP_WRITE_NO_OVERWRITE"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_STREAM_DRAW"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_STREAM_READ"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_STREAM_COPY"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_STATIC_DRAW"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_STATIC_READ"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_STATIC_COPY"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_DYNAMIC_DRAW"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_DYNAMIC_READ"] = { type ='value', },
|
|
["CG_BUFFER_USAGE_DYNAMIC_COPY"] = { type ='value', },
|
|
["cgSetLockingPolicy"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGenum lockingPolicy)", },
|
|
["cgGetLockingPolicy"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(void)", },
|
|
["cgSetSemanticCasePolicy"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGenum casePolicy)", },
|
|
["cgGetSemanticCasePolicy"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(void)", },
|
|
["cgCreateContext"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGcontext)",
|
|
valuetype = nil,
|
|
args = "(void)", },
|
|
["cgSetContextBehavior"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGbehavior behavior)", },
|
|
["cgGetContextBehavior"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbehavior)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgGetBehaviorString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGbehavior behavior)", },
|
|
["cgGetBehavior"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbehavior)",
|
|
valuetype = nil,
|
|
args = "(const char *behavior_string)", },
|
|
["cgDestroyContext"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgIsContext"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgGetLastListing"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGcontext context)", },
|
|
["cgSetLastListing"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGhandle handle, const char *listing)", },
|
|
["cgSetAutoCompile"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGenum autoCompileMode)", },
|
|
["cgGetAutoCompile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgSetParameterSettingMode"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGenum parameterSettingMode)", },
|
|
["cgGetParameterSettingMode"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgSetCompilerIncludeString"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name, const char *source)", },
|
|
["cgSetCompilerIncludeFile"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name, const char *filename)", },
|
|
["cgSetCompilerIncludeCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGIncludeCallbackFunc func)", },
|
|
["cgGetCompilerIncludeCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGIncludeCallbackFunc)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgCreateProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGenum program_type, const char *program, CGprofile profile, const char *entry, const char **args)", },
|
|
["cgCreateProgramFromFile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGenum program_type, const char *program_file, CGprofile profile, const char *entry, const char **args)", },
|
|
["cgCopyProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgDestroyProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgGetFirstProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgGetNextProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGprogram current)", },
|
|
["cgGetProgramContext"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGcontext)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgIsProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgCompileProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgIsProgramCompiled"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgGetProgramString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGprogram program, CGenum pname)", },
|
|
["cgGetProgramProfile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprofile)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgGetProgramOptions"] = { type ='function',
|
|
description = "",
|
|
returns = "(char const * const *)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgSetProgramProfile"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, CGprofile profile)", },
|
|
["cgGetProgramInput"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgGetProgramOutput"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgSetPassProgramParameters"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgUpdateProgramParameters"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgUpdatePassParameters"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgCreateParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGtype type)", },
|
|
["cgCreateParameterArray"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGtype type, int length)", },
|
|
["cgCreateParameterMultiDimArray"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGtype type, int dim, const int *lengths)", },
|
|
["cgDestroyParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgConnectParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter from, CGparameter to)", },
|
|
["cgDisconnectParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetConnectedParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetNumConnectedToParameters"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetConnectedToParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int index)", },
|
|
["cgGetNamedParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, const char *name)", },
|
|
["cgGetNamedProgramParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, CGenum name_space, const char *name)", },
|
|
["cgGetFirstParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, CGenum name_space)", },
|
|
["cgGetNextParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter current)", },
|
|
["cgGetFirstLeafParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, CGenum name_space)", },
|
|
["cgGetNextLeafParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter current)", },
|
|
["cgGetFirstStructParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetNamedStructParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const char *name)", },
|
|
["cgGetFirstDependentParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetArrayParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter aparam, int index)", },
|
|
["cgGetArrayDimension"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetArrayType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetArraySize"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int dimension)", },
|
|
["cgGetArrayTotalSize"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgSetArraySize"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int size)", },
|
|
["cgSetMultiDimArraySize"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const int *sizes)", },
|
|
["cgGetParameterProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterContext"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGcontext)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgIsParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterBaseType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterClass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameterclass)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterRows"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterColumns"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterNamedType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterSemantic"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterResource"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGresource)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterBaseResource"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGresource)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterResourceIndex"] = { type ='function',
|
|
description = "",
|
|
returns = "(unsigned long)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterVariability"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterDirection"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgIsParameterReferenced"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgIsParameterUsed"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, CGhandle handle)", },
|
|
["cgGetParameterValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const double *)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, CGenum value_type, int *nvalues)", },
|
|
["cgSetParameterValuedr"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, const double *vals)", },
|
|
["cgSetParameterValuedc"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, const double *vals)", },
|
|
["cgSetParameterValuefr"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, const float *vals)", },
|
|
["cgSetParameterValuefc"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, const float *vals)", },
|
|
["cgSetParameterValueir"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, const int *vals)", },
|
|
["cgSetParameterValueic"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, const int *vals)", },
|
|
["cgGetParameterValuedr"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, double *vals)", },
|
|
["cgGetParameterValuedc"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, double *vals)", },
|
|
["cgGetParameterValuefr"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, float *vals)", },
|
|
["cgGetParameterValuefc"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, float *vals)", },
|
|
["cgGetParameterValueir"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, int *vals)", },
|
|
["cgGetParameterValueic"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, int *vals)", },
|
|
["cgGetParameterDefaultValuedr"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, double *vals)", },
|
|
["cgGetParameterDefaultValuedc"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, double *vals)", },
|
|
["cgGetParameterDefaultValuefr"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, float *vals)", },
|
|
["cgGetParameterDefaultValuefc"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, float *vals)", },
|
|
["cgGetParameterDefaultValueir"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, int *vals)", },
|
|
["cgGetParameterDefaultValueic"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int nelements, int *vals)", },
|
|
["cgGetStringParameterValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGparameter param)", },
|
|
["cgSetStringParameterValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const char *str)", },
|
|
["cgGetParameterOrdinalNumber"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgIsParameterGlobal"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterIndex"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgSetParameterVariability"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, CGenum vary)", },
|
|
["cgSetParameterSemantic"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const char *semantic)", },
|
|
["cgSetParameter1f"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, float x)", },
|
|
["cgSetParameter2f"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, float x, float y)", },
|
|
["cgSetParameter3f"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, float x, float y, float z)", },
|
|
["cgSetParameter4f"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, float x, float y, float z, float w)", },
|
|
["cgSetParameter1d"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, double x)", },
|
|
["cgSetParameter2d"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, double x, double y)", },
|
|
["cgSetParameter3d"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, double x, double y, double z)", },
|
|
["cgSetParameter4d"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, double x, double y, double z, double w)", },
|
|
["cgSetParameter1i"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int x)", },
|
|
["cgSetParameter2i"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int x, int y)", },
|
|
["cgSetParameter3i"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int x, int y, int z)", },
|
|
["cgSetParameter4i"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int x, int y, int z, int w)", },
|
|
["cgSetParameter1iv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const int *v)", },
|
|
["cgSetParameter2iv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const int *v)", },
|
|
["cgSetParameter3iv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const int *v)", },
|
|
["cgSetParameter4iv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const int *v)", },
|
|
["cgSetParameter1fv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const float *v)", },
|
|
["cgSetParameter2fv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const float *v)", },
|
|
["cgSetParameter3fv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const float *v)", },
|
|
["cgSetParameter4fv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const float *v)", },
|
|
["cgSetParameter1dv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const double *v)", },
|
|
["cgSetParameter2dv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const double *v)", },
|
|
["cgSetParameter3dv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const double *v)", },
|
|
["cgSetParameter4dv"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const double *v)", },
|
|
["cgSetMatrixParameterir"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const int *matrix)", },
|
|
["cgSetMatrixParameterdr"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const double *matrix)", },
|
|
["cgSetMatrixParameterfr"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const float *matrix)", },
|
|
["cgSetMatrixParameteric"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const int *matrix)", },
|
|
["cgSetMatrixParameterdc"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const double *matrix)", },
|
|
["cgSetMatrixParameterfc"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const float *matrix)", },
|
|
["cgGetMatrixParameterir"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int *matrix)", },
|
|
["cgGetMatrixParameterdr"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, double *matrix)", },
|
|
["cgGetMatrixParameterfr"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, float *matrix)", },
|
|
["cgGetMatrixParameteric"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, int *matrix)", },
|
|
["cgGetMatrixParameterdc"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, double *matrix)", },
|
|
["cgGetMatrixParameterfc"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, float *matrix)", },
|
|
["cgGetMatrixParameterOrder"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetNamedSubParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const char *name)", },
|
|
["cgGetTypeString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGtype type)", },
|
|
["cgGetType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(const char *type_string)", },
|
|
["cgGetNamedUserType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGhandle handle, const char *name)", },
|
|
["cgGetNumUserTypes"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGhandle handle)", },
|
|
["cgGetUserType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGhandle handle, int index)", },
|
|
["cgGetNumParentTypes"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGtype type)", },
|
|
["cgGetParentType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGtype type, int index)", },
|
|
["cgIsParentType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGtype parent, CGtype child)", },
|
|
["cgIsInterfaceType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGtype type)", },
|
|
["cgGetResourceString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGresource resource)", },
|
|
["cgGetResource"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGresource)",
|
|
valuetype = nil,
|
|
args = "(const char *resource_string)", },
|
|
["cgGetEnumString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGenum en)", },
|
|
["cgGetEnum"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGenum)",
|
|
valuetype = nil,
|
|
args = "(const char *enum_string)", },
|
|
["cgGetProfileString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGprofile profile)", },
|
|
["cgGetProfile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprofile)",
|
|
valuetype = nil,
|
|
args = "(const char *profile_string)", },
|
|
["cgGetNumSupportedProfiles"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(void)", },
|
|
["cgGetSupportedProfile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprofile)",
|
|
valuetype = nil,
|
|
args = "(int index)", },
|
|
["cgIsProfileSupported"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGprofile profile)", },
|
|
["cgGetProfileProperty"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGprofile profile, CGenum query)", },
|
|
["cgGetParameterClassString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGparameterclass pc)", },
|
|
["cgGetParameterClassEnum"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameterclass)",
|
|
valuetype = nil,
|
|
args = "(const char *pString)", },
|
|
["cgGetDomainString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGdomain domain)", },
|
|
["cgGetDomain"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGdomain)",
|
|
valuetype = nil,
|
|
args = "(const char *domain_string)", },
|
|
["cgGetProgramDomain"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGdomain)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgGetError"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGerror)",
|
|
valuetype = nil,
|
|
args = "(void)", },
|
|
["cgGetFirstError"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGerror)",
|
|
valuetype = nil,
|
|
args = "(void)", },
|
|
["cgGetErrorString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGerror error)", },
|
|
["cgGetLastErrorString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGerror *error)", },
|
|
["cgSetErrorCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGerrorCallbackFunc func)", },
|
|
["cgGetErrorCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGerrorCallbackFunc)",
|
|
valuetype = nil,
|
|
args = "(void)", },
|
|
["cgSetErrorHandler"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGerrorHandlerFunc func, void *data)", },
|
|
["cgGetErrorHandler"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGerrorHandlerFunc)",
|
|
valuetype = nil,
|
|
args = "(void **data)", },
|
|
["cgGetString"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGenum sname)", },
|
|
["cgCreateEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *code, const char **args)", },
|
|
["cgCreateEffectFromFile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *filename, const char **args)", },
|
|
["cgCopyEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgDestroyEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgGetEffectContext"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGcontext)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgIsEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgGetFirstEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgGetNextEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgCreateProgramFromEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, CGprofile profile, const char *entry, const char **args)", },
|
|
["cgGetFirstTechnique"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtechnique)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgGetNextTechnique"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtechnique)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech)", },
|
|
["cgGetNamedTechnique"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtechnique)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name)", },
|
|
["cgGetTechniqueName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGtechnique tech)", },
|
|
["cgIsTechnique"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech)", },
|
|
["cgValidateTechnique"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech)", },
|
|
["cgIsTechniqueValidated"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech)", },
|
|
["cgGetTechniqueEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech)", },
|
|
["cgGetFirstPass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGpass)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech)", },
|
|
["cgGetNamedPass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGpass)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech, const char *name)", },
|
|
["cgGetNextPass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGpass)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgIsPass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgGetPassName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGpass pass)", },
|
|
["cgGetPassTechnique"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtechnique)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgGetPassProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass, CGdomain domain)", },
|
|
["cgSetPassState"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgResetPassState"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgGetFirstStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgGetNamedStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass, const char *name)", },
|
|
["cgGetNextStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgIsStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgCallStateSetCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgCallStateValidateCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgCallStateResetCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetStateAssignmentPass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGpass)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetSamplerStateAssignmentParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetFloatStateAssignmentValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const float *)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, int *nvalues)", },
|
|
["cgGetIntStateAssignmentValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const int *)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, int *nvalues)", },
|
|
["cgGetBoolStateAssignmentValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const CGbool *)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, int *nvalues)", },
|
|
["cgGetStringStateAssignmentValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetProgramStateAssignmentValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetTextureStateAssignmentValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetSamplerStateAssignmentValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetStateAssignmentIndex"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetNumDependentStateAssignmentParameters"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetDependentStateAssignmentParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, int index)", },
|
|
["cgGetNumDependentProgramArrayStateAssignmentParameters"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetDependentProgramArrayStateAssignmentParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, int index)", },
|
|
["cgGetConnectedStateAssignmentParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetStateAssignmentState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgGetSamplerStateAssignmentState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa)", },
|
|
["cgCreateState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name, CGtype type)", },
|
|
["cgCreateArrayState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name, CGtype type, int nelements)", },
|
|
["cgSetStateCallbacks"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGstate state, CGstatecallback set, CGstatecallback reset, CGstatecallback validate)", },
|
|
["cgSetStateLatestProfile"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGstate state, CGprofile profile)", },
|
|
["cgGetStateSetCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstatecallback)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgGetStateResetCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstatecallback)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgGetStateValidateCallback"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstatecallback)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgGetStateLatestProfile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprofile)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgGetStateContext"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGcontext)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgGetStateType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgGetStateName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGstate state)", },
|
|
["cgGetNamedState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name)", },
|
|
["cgGetFirstState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgGetNextState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgIsState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgAddStateEnumerant"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGstate state, const char *name, int value)", },
|
|
["cgCreateSamplerState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name, CGtype type)", },
|
|
["cgCreateArraySamplerState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name, CGtype type, int nelements)", },
|
|
["cgGetNamedSamplerState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name)", },
|
|
["cgGetFirstSamplerState"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstate)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context)", },
|
|
["cgGetFirstSamplerStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetNamedSamplerStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const char *name)", },
|
|
["cgSetSamplerState"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetNamedEffectParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name)", },
|
|
["cgGetFirstLeafEffectParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgGetFirstEffectParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgGetEffectParameterBySemantic"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *semantic)", },
|
|
["cgGetFirstTechniqueAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech)", },
|
|
["cgGetFirstPassAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass)", },
|
|
["cgGetFirstParameterAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetFirstProgramAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgGetFirstEffectAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect)", },
|
|
["cgGetNextAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann)", },
|
|
["cgGetNamedTechniqueAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech, const char *name)", },
|
|
["cgGetNamedPassAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass, const char *name)", },
|
|
["cgGetNamedParameterAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const char *name)", },
|
|
["cgGetNamedProgramAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, const char *name)", },
|
|
["cgGetNamedEffectAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name)", },
|
|
["cgIsAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann)", },
|
|
["cgGetAnnotationName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGannotation ann)", },
|
|
["cgGetAnnotationType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann)", },
|
|
["cgGetFloatAnnotationValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const float *)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, int *nvalues)", },
|
|
["cgGetIntAnnotationValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const int *)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, int *nvalues)", },
|
|
["cgGetStringAnnotationValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGannotation ann)", },
|
|
["cgGetStringAnnotationValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char * const *)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, int *nvalues)", },
|
|
["cgGetBoolAnnotationValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const CGbool *)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, int *nvalues)", },
|
|
["cgGetBooleanAnnotationValues"] = { type ='function',
|
|
description = "",
|
|
returns = "(const int *)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, int *nvalues)", },
|
|
["cgGetNumDependentAnnotationParameters"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann)", },
|
|
["cgGetDependentAnnotationParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, int index)", },
|
|
["cgEvaluateProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, float *buf, int ncomps, int nx, int ny, int nz)", },
|
|
["cgSetEffectName"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name)", },
|
|
["cgGetEffectName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGeffect effect)", },
|
|
["cgGetNamedEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, const char *name)", },
|
|
["cgCreateEffectParameter"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name, CGtype type)", },
|
|
["cgCreateTechnique"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtechnique)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name)", },
|
|
["cgCreateEffectParameterArray"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name, CGtype type, int length)", },
|
|
["cgCreateEffectParameterMultiDimArray"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameter)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name, CGtype type, int dim, const int *lengths)", },
|
|
["cgCreatePass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGpass)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech, const char *name)", },
|
|
["cgCreateStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass, CGstate state)", },
|
|
["cgCreateStateAssignmentIndex"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass, CGstate state, int index)", },
|
|
["cgCreateSamplerStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGstateassignment)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, CGstate state)", },
|
|
["cgSetFloatStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, float value)", },
|
|
["cgSetIntStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, int value)", },
|
|
["cgSetBoolStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, CGbool value)", },
|
|
["cgSetStringStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, const char *value)", },
|
|
["cgSetProgramStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, CGprogram program)", },
|
|
["cgSetSamplerStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, CGparameter param)", },
|
|
["cgSetTextureStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, CGparameter param)", },
|
|
["cgSetFloatArrayStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, const float *vals)", },
|
|
["cgSetIntArrayStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, const int *vals)", },
|
|
["cgSetBoolArrayStateAssignment"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGstateassignment sa, const CGbool *vals)", },
|
|
["cgCreateTechniqueAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGtechnique tech, const char *name, CGtype type)", },
|
|
["cgCreatePassAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGpass pass, const char *name, CGtype type)", },
|
|
["cgCreateParameterAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, const char *name, CGtype type)", },
|
|
["cgCreateProgramAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, const char *name, CGtype type)", },
|
|
["cgCreateEffectAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGannotation)",
|
|
valuetype = nil,
|
|
args = "(CGeffect effect, const char *name, CGtype type)", },
|
|
["cgSetIntAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, int value)", },
|
|
["cgSetFloatAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, float value)", },
|
|
["cgSetBoolAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, CGbool value)", },
|
|
["cgSetStringAnnotation"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGannotation ann, const char *value)", },
|
|
["cgGetNumStateEnumerants"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGstate state)", },
|
|
["cgGetStateEnumerant"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGstate state, int index, int *value)", },
|
|
["cgGetStateEnumerantName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGstate state, int value)", },
|
|
["cgGetStateEnumerantValue"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGstate state, const char *name)", },
|
|
["cgGetParameterEffect"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGeffect)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetTypeClass"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGparameterclass)",
|
|
valuetype = nil,
|
|
args = "(CGtype type)", },
|
|
["cgGetTypeBase"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGtype type)", },
|
|
["cgGetTypeSizes"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbool)",
|
|
valuetype = nil,
|
|
args = "(CGtype type, int *nrows, int *ncols)", },
|
|
["cgGetMatrixSize"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGtype type, int *nrows, int *ncols)", },
|
|
["cgGetNumProgramDomains"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program)", },
|
|
["cgGetProfileDomain"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGdomain)",
|
|
valuetype = nil,
|
|
args = "(CGprofile profile)", },
|
|
["cgCombinePrograms"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(int n, const CGprogram *exeList)", },
|
|
["cgCombinePrograms2"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(const CGprogram exe1, const CGprogram exe2)", },
|
|
["cgCombinePrograms3"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3)", },
|
|
["cgCombinePrograms4"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3, const CGprogram exe4)", },
|
|
["cgCombinePrograms5"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(const CGprogram exe1, const CGprogram exe2, const CGprogram exe3, const CGprogram exe4, const CGprogram exe5)", },
|
|
["cgGetProgramDomainProfile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprofile)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, int index)", },
|
|
["cgGetProgramDomainProgram"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGprogram)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, int index)", },
|
|
["cgCreateObj"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGobj)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGenum program_type, const char *source, CGprofile profile, const char **args)", },
|
|
["cgCreateObjFromFile"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGobj)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, CGenum program_type, const char *source_file, CGprofile profile, const char **args)", },
|
|
["cgDestroyObj"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGobj obj)", },
|
|
["cgGetParameterResourceSize"] = { type ='function',
|
|
description = "",
|
|
returns = "(long)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterResourceType"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGtype)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterResourceName"] = { type ='function',
|
|
description = "",
|
|
returns = "(const char *)",
|
|
valuetype = "string",
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterBufferIndex"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgGetParameterBufferOffset"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgCreateBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbuffer)",
|
|
valuetype = nil,
|
|
args = "(CGcontext context, int size, const void *data, CGbufferusage bufferUsage)", },
|
|
["cgSetBufferData"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGbuffer buffer, int size, const void *data)", },
|
|
["cgSetBufferSubData"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGbuffer buffer, int offset, int size, const void *data)", },
|
|
["cgSetProgramBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, int bufferIndex, CGbuffer buffer)", },
|
|
["cgMapBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(void *)",
|
|
valuetype = nil,
|
|
args = "(CGbuffer buffer, CGbufferaccess access)", },
|
|
["cgUnmapBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGbuffer buffer)", },
|
|
["cgDestroyBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGbuffer buffer)", },
|
|
["cgGetProgramBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbuffer)",
|
|
valuetype = nil,
|
|
args = "(CGprogram program, int bufferIndex)", },
|
|
["cgGetBufferSize"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGbuffer buffer)", },
|
|
["cgGetProgramBufferMaxSize"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGprofile profile)", },
|
|
["cgGetProgramBufferMaxIndex"] = { type ='function',
|
|
description = "",
|
|
returns = "(int)",
|
|
valuetype = nil,
|
|
args = "(CGprofile profile)", },
|
|
["cgGetEffectParameterBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(CGbuffer)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param)", },
|
|
["cgSetEffectParameterBuffer"] = { type ='function',
|
|
description = "",
|
|
returns = "(void)",
|
|
valuetype = nil,
|
|
args = "(CGparameter param, CGbuffer buffer)", },
|
|
}
|
|
return {
|
|
cg = {
|
|
type = 'lib',
|
|
description = "Cg runtime",
|
|
childs = api,
|
|
},
|
|
}
|