posts - 0, comments - 1, trackbacks - 0, articles - 25
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Keywords (DirectX HLSL)

Posted on 2009-10-14 17:03 cngamedev 阅读(268) 评论(0)  编辑 收藏 引用 所属分类: Shader

The following words are recognized as keywords by the HLSL language. Keywords are predefined reserved identifiers that have special meanings. They cannot be used as identifiers in your program.

Keywords are not case sensitive, they are displayed in camel casing (first letter of each word capitalized) for ease of readability.

BlendState, Bool, Break, Buffer
CBuffer, Compile, Const, Continue
DepthStencilState, DepthStencilView, Discard, Do, Double
Else, Extern
False, Float, For
GeometryShader
Half
If, In, Inline
Inout, Int
Matrix
Namespace, Nointerpolation
Out
Pass, PixelShader
RasterizerState, RenderTargetView, Return, Register
Sampler, Sampler1D, Sampler2D, Sampler3D, SamplerCUBE, Sampler_State, SamplerComparisonState, Shared, Stateblock, Stateblock_state, Static, String, Struct, Switch
TBuffer, Technique, Technique10, texture1, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture2DMS, Texture2DMSArray, Texture3D, TextureCube, TextureCubeArray, True, Typedef
Uniform
Vector, VertexShader, Void, Volatile, While
  1. The only keyword that is case sensitive is texture, which is all lower case, and is used for backward compatibility with older shaders.

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理