mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Refactor D3D11 shaders to reduce duplicated code
This commit is contained in:
1 parent
b1f980c216
commit
36db791516
9 files changed
+25
-63
No files matched your search
@@ -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