mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
Refactor D3D11 shaders to reduce duplicated code
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user