| 871 | } |
| 872 | |
| 873 | GPUPipelineState* GPUDevice::GetDecodeYUY2PS() const |
| 874 | { |
| 875 | if (_res->PS_DecodeYUY2 == nullptr) |
| 876 | { |
| 877 | auto psDesc = GPUPipelineState::Description::DefaultFullscreenTriangle; |
| 878 | psDesc.PS = QuadShader->GetPS("PS_DecodeYUY2"); |
| 879 | _res->PS_DecodeYUY2 = const_cast<GPUDevice*>(this)->CreatePipelineState(); |
| 880 | _res->PS_DecodeYUY2->Init(psDesc); |
| 881 | } |
| 882 | return _res->PS_DecodeYUY2; |
| 883 | } |
| 884 | |
| 885 | GPUPipelineState* GPUDevice::GetDecodeNV12PS() const |
| 886 | { |
no test coverage detected