什么是 VPRT 着色器?

What is VPRT shader?

在使用适用于 SharpDX 的全息模板时,我看到它提到了 VPRT 支持设备的 VPRT 着色器

On devices that do support the D3D11_FEATURE_D3D11_OPTIONS3:: VPAndRTArrayIndexFromAnyShaderFeedingRasterizer optional feature we can avoid using a pass-through geometry shader to set the render target array index, thus avoiding any overhead that would be incurred by setting the geometry shader stage.

我在互联网上四处搜寻,但没有找到对 VPRT 的实用参考。谁能告诉我这是什么?

VP 和 RT 代表视口和渲染目标。最初,只有几何着色器被授权输出语义 SV_ViewportArrayIndexSV_RenderTargetArrayIndex,但它迫使你使用非常低效的几何着色器路径,而在幕后,一些 GPU 可以只用一个一对顶点和像素着色器。