Refactor D3D11 shaders to reduce duplicated code

This commit is contained in:
Cameron Gutman
2022-02-16 19:38:18 -06:00
parent b1f980c216
commit 36db791516
9 changed files with 25 additions and 63 deletions
@@ -1158,7 +1158,7 @@ bool D3D11VARenderer::setupRenderingResources()
}
{
QByteArray videoPixelShaderBytecode = Path::readDataFile("d3d11_video_pixel.fxc");
QByteArray videoPixelShaderBytecode = Path::readDataFile("d3d11_genyuv_pixel.fxc");
hr = m_Device->CreatePixelShader(videoPixelShaderBytecode.constData(), videoPixelShaderBytecode.length(), nullptr, &m_VideoGenericPixelShader);
if (FAILED(hr)) {