HLSL 变量语法定义
摘要:
在HLSL中声明变量的语法如下:[Storage_Class] [Type_Modifier] Type Name[Index] [: Semantic] [: Packoffset] [: Register]; [Annotations] [= Initial_Value]Storage_Class:提示编译器该变量的作用域与生命周期,可按任意方式排列。ValueDescriptionexternMark a global variable as an external input to the shader; this is the default marki... 阅读全文
posted @ 2012-03-23 23:51 Meta.Grfx 阅读(3060) 评论(0) 推荐(0) 编辑