Cg关键字(keywords)
本文为作者原创,转载请注明出处:https://www.cnblogs.com/zhaoqingqing/p/4051086.html
保留标识符#
除了下面列出的,任何以两个的下划线作为前缀(例如,__ newType)的标识符被保留。
注意,矩阵(matrix)和向量类型(vector types)(如half2x3或float4)不在该列表中,因为它们可以被用作标识符。不过,我们建议你把矩阵和向量类型的保留字,从而避免混淆
Cg 关键字#
下方是Cg(NVIDIA C for graphics)保留字列表,标有星号不区分大小写。
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
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· DeepSeek 解答了困扰我五年的技术问题
· 为什么说在企业级应用开发中,后端往往是效率杀手?
· 10亿数据,如何做迁移?
· 推荐几款开源且免费的 .NET MAUI 组件库
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 易语言 —— 开山篇
· Trae初体验
2013-10-25 NGUI学习笔记汇总