1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "stdafx.h" #include "startup.h" #include "device.h" HRESULT DirectCompute::d3dStartup( uint32_t flags ) { HRESULT hr = DirectCompute::initialize( flags ); if( SUCCEEDED( hr ) ) hr = createComputeShaders(); return hr; } void DirectCompute::d3dShutdown() { destroyComputeShaders(); terminate(); }