MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetDecodeNV12PS

Method GetDecodeNV12PS

Source/Engine/Graphics/GPUDevice.cpp:885–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885GPUPipelineState* 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
897GPUBuffer* GPUDevice::GetFullscreenTriangleVB() const
898{

Callers 1

runMethod · 0.80

Calls 3

GetPSMethod · 0.45
CreatePipelineStateMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected