Refactor D3D11 shaders to reduce duplicated code
This commit is contained in:
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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue