MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / ActiveRenderTargetToPPM

Method ActiveRenderTargetToPPM

Common/rendercheck_d3d11.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#include <rendercheck_d3d11.h>
43
44HRESULT CheckRenderD3D11::ActiveRenderTargetToPPM(ID3D11Device *pDevice, const char *zFileName)
45{
46 ID3D11DeviceContext *pDeviceCtxt;
47 pDevice->GetImmediateContext(&pDeviceCtxt);
48 ID3D11RenderTargetView *pRTV = NULL;
49 pDeviceCtxt->OMGetRenderTargets(1,&pRTV,NULL);
50
51 ID3D11Resource *pSourceResource = NULL;
52 pRTV->GetResource(&pSourceResource);
53
54 return ResourceToPPM(pDevice,pSourceResource,zFileName);
55}
56
57HRESULT CheckRenderD3D11::ResourceToPPM(ID3D11Device *pDevice, ID3D11Resource *pResource, const char *zFileName)
58{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected