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

Method OnCreateDevice

framework/d3d11/amd_sdk/src/HUD.cpp:62–74  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Device creation hook function, that loads the AMD logo texture, and creates a sprite object --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

60// object
61//--------------------------------------------------------------------------------------
62HRESULT HUD::OnCreateDevice( ID3D11Device* pd3dDevice )
63{
64 HRESULT hr;
65 wchar_t str[MAX_PATH];
66
67 m_Sprite.OnCreateDevice( pd3dDevice );
68
69 V_RETURN( DXUTFindDXSDKMediaFileCch( str, MAX_PATH, L"..\\..\\framework\\d3d11\\amd_sdk\\media\\AMD.dds" ) );
70 DirectX::CreateDDSTextureFromFile( pd3dDevice, str, nullptr, &m_pLogoSRV );
71 DXUT_SetDebugName( m_pLogoSRV, "AMD.dds" );
72
73 return hr;
74}
75
76
77//--------------------------------------------------------------------------------------

Callers 1

OnD3D11CreateDeviceFunction · 0.45

Calls 2

DXUT_SetDebugNameFunction · 0.85

Tested by

no test coverage detected