MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / SetSourceResources

Method SetSourceResources

framework/d3d11/amd_sdk/src/MagnifyTool.cpp:70–88  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- User sets the resource to be captured from --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

68// User sets the resource to be captured from
69//--------------------------------------------------------------------------------------
70void MagnifyTool::SetSourceResources( ID3D11Resource* pSourceRTResource, DXGI_FORMAT RTFormat,
71 int nWidth, int nHeight, int nSamples )
72{
73 assert( NULL != pSourceRTResource );
74
75 m_pSourceRTResource = pSourceRTResource;
76 m_RTFormat = RTFormat;
77 m_nWidth = nWidth;
78 m_nHeight = nHeight;
79 m_nSamples = nSamples;
80
81 if (NULL != pSourceRTResource)
82 {
83 m_Magnify.SetSourceResource( m_pSourceRTResource, m_RTFormat, m_nWidth, m_nHeight, m_nSamples );
84 }
85
86 EnableTool( true );
87 EnableUI( true );
88}
89
90
91//--------------------------------------------------------------------------------------

Callers 1

OnD3D11ResizedSwapChainFunction · 0.80

Calls 1

SetSourceResourceMethod · 0.80

Tested by

no test coverage detected