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.
如何在 Metal 中进行硬件加速纹理投影?我找不到任何描述如何做到这一点的参考或资源。
你自己做分割。
OpenGL:
a = tex2Dproj( texture, texcoord.xyzw ) b = tex2Dproj( texture, texcoord.xyz )
金属当量:
a = texture.sample( sampler, texcoord.xy/texcoord.w ) b = texture.sample( sampler, texcoord.xy/texcoord.z )
(根据您正在进行的投影类型选择“a”或“b”,更常见的是“a”)