首页 > 其他 > 详细

Cg关键字(keywords)

时间:2014-10-26 00:18:15      阅读:247      评论:0      收藏:0      [点我收藏+]

D. 1 Cg 关键字列表

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

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

asm*              explicit           pixelfragment*       template

asm_fragment      extern             pixelshader*         texture*

auto              FALSE              private              texture1D

bool              fixed              protected            texture2D

break             float*             public               texture3D

case              for                register             textureCUBE

catch             friend             reinterpret_cast     textureRECT

char              get                return               this

class             goto               row_major            throw

column_major      half               sampler              TRUE

compile           if                 sampler_state        try

const             in                 sampler1D            typedef

const_cast        inline             sampler2D            typeid

continue          inout              sampler3D            typename

decl*             int                samplerCUBE          uniform

default           interface          shared               union

delete            long               short                unsigned

discard           matrix*            signed               using

do                mutable            sizeof               vector*

double            namespace          static               vertexfragment*

dword*            new                static_cast          vertexshader*

dynamic_cast      operator           string*              virtual

else              out                struct               void

emit              packed             switch               volatile

enum              pass*              technique*           while

 

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

Cg关键字(keywords)

原文:http://www.cnblogs.com/zhaoqingqing/p/4051086.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!