首页 > 代码库 > Cg关键字(keywords)

Cg关键字(keywords)

D. 1 Cg 关键字列表

以下是Cg(NVIDIA C for graphics)保留字列表。标有星号的话是不区分大小写的。

除了 ??这个名单上的话,任何以两个的下划线作为前缀(例如,__ newType)的标识符被保留。注意,矩阵(matrix)和向量类型(vector types)(如half2x3float4)不在该列表中,因为它们可以被用作标识符。不过,我们建议你把矩阵和向量类型的保留字,从而避免混淆

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

 

版权归 NVIDIA公司:http://http.developer.nvidia.com/CgTutorial/cg_tutorial_appendix_d.html

Cg关键字(keywords)