| 883 | } |
| 884 | |
| 885 | GPUPipelineState* GPUDevice::GetDecodeNV12PS() const |
| 886 | { |
| 887 | if (_res->PS_DecodeNV12 == nullptr) |
| 888 | { |
| 889 | auto psDesc = GPUPipelineState::Description::DefaultFullscreenTriangle; |
| 890 | psDesc.PS = QuadShader->GetPS("PS_DecodeNV12"); |
| 891 | _res->PS_DecodeNV12 = const_cast<GPUDevice*>(this)->CreatePipelineState(); |
| 892 | _res->PS_DecodeNV12->Init(psDesc); |
| 893 | } |
| 894 | return _res->PS_DecodeNV12; |
| 895 | } |
| 896 | |
| 897 | GPUBuffer* GPUDevice::GetFullscreenTriangleVB() const |
| 898 | { |
no test coverage detected