Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Ogre 中,当加载 HLSL 着色器时,您指定一个目标 PS/VS,例如 SM2.0、SM 3.0。是否有用于 HLSL 的工具(我猜是其他着色器语言)会告诉我给定 HLSL 函数/文件的哪些着色器模型版本有效?例如,我们默认为 SM3.0 编写着色器,但据我所知,它们作为 SM2.0 是有效的。
从低着色器版本开始,然后逐步向上直到它编译。它不优雅,但它有效。