HLSL Keywords (HLSL 关键字)
来源:互联网 发布:挖机大转盘型号数据 编辑:程序博客网 时间:2024/05/01 04:29
Keywords
The Microsoft High Level Shader Language (HLSL) recognizes the words in this section as keywords. Keywords are predefined reserved identifiers that have special meanings. You can't use them as identifiers in your app.
AppendStructuredBuffer, asm, asm_fragmentBlendState, bool, break, Buffer, ByteAddressBuffercase, cbuffer, centroid, class, column_major, compile, compile_fragment, CompileShader, const, continue, ComputeShader, ConsumeStructuredBufferdefault, DepthStencilState, DepthStencilView, discard, do, double, DomainShader, dwordelse, export, externfalse, float, for, fxgroupGeometryShader, groupsharedhalf, Hullshaderif, in, inline, inout, InputPatch, int, interfaceline, lineadj, linear, LineStreammatrix, min16float, min10float, min16int, min12int, min16uintnamespace, nointerpolation, noperspective, NULLout, OutputPatchpackoffset, pass, pixelfragment, PixelShader, point, PointStream, preciseRasterizerState, RenderTargetView, return, register, row_major, RWBuffer, RWByteAddressBuffer,RWStructuredBuffer, RWTexture1D, RWTexture1DArray, RWTexture2D, RWTexture2DArray, RWTexture3Dsample, sampler, SamplerState, SamplerComparisonState, shared, snorm, stateblock, stateblock_state, static,string, struct, switch, StructuredBuffertbuffer, technique, technique10, technique11, texture, Texture1D, Texture1DArray, Texture2D,Texture2DArray, Texture2DMS, Texture2DMSArray, Texture3D, TextureCube, TextureCubeArray, true,typedef, triangle, triangleadj, TriangleStreamuint, uniform, unorm, unsignedvector, vertexfragment, VertexShader, void, volatilewhile
Remarks
These numeric types have scalar, vector, and matrix keyword expansions:
- float, int, uint, bool
- min10float, min16float
- min12int, min16int
- min16uint
The expansions of these numeric types follow this pattern, which uses float as an example:
Scalar
- float
Vector
- float1, float2, float3, float4
Matrix
float1x1, float1x2, float1x3, float1x4
float2x1, float2x2, float2x3, float2x4
float3x1, float3x2, float3x3, float3x4
float4x1, float4x2, float4x3, float4x4
HLSL supports lower-case texture and sampler for legacy reasons. Instead, for your new apps, we recommend that you use HLSL's new texture objects (Texture2D, Texture3D, and so on) and sampler objects (SamplerState and SamplerComparisonState).
export
Use export to mark functions that you package into a library.
Here is an example:
export float identity(float x){ return x;}
By marking the identity function with the export keyword, you make the identity function available from a library for later linking. Without the export marking, the identity function isn't available for later linking.
The compiler ignores the export keyword for non-library compilation.
Related topics
- Appendix (DirectX HLSL)
- HLSL Keywords (HLSL 关键字)
- HLSL
- HLSL
- Vs中高亮HLSL关键字
- HLSL Semantics (HLSL语义)
- HLSL Appendix(HLSL附录)
- HLSL基础
- HLSL初步
- HLSL函数
- 再观HLSL
- HLSL初级教程
- HLSL错误
- HLSL Introduction
- hlsl初学
- HLSL基础
- HLSL初步
- HLSL基础
- 变量~HLSL
- 弹出层被flash遮挡的解决办法
- java中String的常用方法
- java迭代器(Iterator)简单使用
- CentOS 或Redhat安装JDK1.7
- selenium wait
- HLSL Keywords (HLSL 关键字)
- java回车登陆
- poj1787 Charlie's Change
- 测试添加多级目录篇
- Android dp到厘米的转换
- 【黑马程序员】Java学习笔记之函数与数组
- 百度将取消referer关键词显示
- HLSL Appendix(HLSL附录)
- lua string 库函数