D. 1 CG keyword list
The following is a reserved word list of CG (nvidia c for graphics. It is case-insensitive if it is marked with an asterisk.
Except ?? In this list, any prefix with two underlines (for example ,__Newtype. Note: matrix and vector type (such as vector types)Half2x3OrFloat4) Is not in the list because they can be used as identifiers. However, we recommend that you reserve words for the matrix and vector types to avoid confusion.
asm* explicit pixelfragment* templateasm_fragment extern pixelshader* texture*auto FALSE private texture1Dbool fixed protected texture2Dbreak float* public texture3Dcase for register textureCUBEcatch friend reinterpret_cast textureRECTchar get return thisclass goto row_major throwcolumn_major half sampler TRUEcompile if sampler_state tryconst in sampler1D typedefconst_cast inline sampler2D typeidcontinue inout sampler3D typenamedecl* int samplerCUBE uniformdefault interface shared uniondelete long short unsigneddiscard matrix* signed usingdo mutable sizeof vector*double namespace static vertexfragment*dword* new static_cast vertexshader*dynamic_cast operator string* virtualelse out struct voidemit packed switch volatileenum pass* technique* while
Copyright to NVIDIA: http://http.developer.nvidia.com/CgTutorial/cg_tutorial_appendix_d.html
CG keywords (keywords)