GLSLSource
概述
GLSLSource 是 Aspose.3D FOSS 中用于 .NET 的类。继承自:ShaderSource。
GLSL 中着色器的源代码
此类提供 2 个方法,用于在 .NET 程序中处理 GLSLSource 对象。可用的方法包括:DefineInclude、GLSLSource。在安装 Aspose.3D FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:ComputeShader、FragmentShader、GeometryShader、VertexShader。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
ComputeShader | string | 读写 | 获取或设置计算着色器的源代码。 |
GeometryShader | string | 读写 | 获取或设置几何着色器的源代码。 |
VertexShader | string | 读写 | 获取或设置顶点着色器的源代码 |
FragmentShader | string | 读写 | 获取或设置片段着色器的源代码。 |
方法
| 签名 | 描述 |
|---|---|
GLSLSource() | GLSL 源代码 |
DefineInclude(fileName: string, content: string) | 在 FOSS 版中未实现——运行时抛出异常。 为 GLSL 源代码中的 #include 定义虚拟文件 |