MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / LoadModule

Method LoadModule

applications/_plugins/cmp_d3dx/d3dxmodule.cpp:73–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool CD3DXModule::LoadModule(LPCTSTR lpModuleName)
74{
75 if (__super::LoadModule(lpModuleName))
76 {
77 m_pCreateBuffer = (D3DXCreateBufferProc)GetProcAddress("D3DXCreateBuffer");
78 m_pCompileShader = (D3DXCompileShaderProc)GetProcAddress("D3DXCompileShader");
79 m_pAssembleShader = (D3DXAssembleShaderProc)GetProcAddress("D3DXAssembleShader");
80 m_pDisassembleShader = (D3DXDisassembleShaderProc)GetProcAddress("D3DXDisassembleShader");
81 m_pFilterTexture = (D3DXFilterTextureProc)GetProcAddress("D3DXFilterTexture");
82 if (!m_pCompileShader || !m_pAssembleShader || !m_pDisassembleShader || !m_pFilterTexture)
83 {
84 UnloadModule();
85 return false;
86 }
87 else
88 return true;
89 }
90 else
91 return false;
92}
93
94void CD3DXModule::UnloadModule()
95{

Callers 1

LoadD3DXFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected