diff options
| author | Konstantin <const@const.me> | 2023-01-16 14:52:43 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-01-16 14:52:43 +0100 |
| commit | 8c4603c73675958efc960fbd4bb599a2909d106a (patch) | |
| tree | 714dc6fc9a1672d5fd7f89676b97e10959662abc /Whisper/ML/mlStartup.cpp | |
| parent | 990a8d0dbaefc996244097397259e92758b15cce (diff) | |
Source codes
Diffstat (limited to 'Whisper/ML/mlStartup.cpp')
| -rw-r--r-- | Whisper/ML/mlStartup.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Whisper/ML/mlStartup.cpp b/Whisper/ML/mlStartup.cpp new file mode 100644 index 0000000..815ce52 --- /dev/null +++ b/Whisper/ML/mlStartup.cpp @@ -0,0 +1,27 @@ +#include "stdafx.h" +#include "mlStartup.h" +#include "../D3D/startup.h" +#include "LookupTables.h" + +namespace +{ + static DirectCompute::LookupTables s_tables; +} + +namespace DirectCompute +{ + const LookupTables& lookupTables = s_tables; + + HRESULT mlStartup() + { + CHECK( d3dStartup() ); + CHECK( s_tables.create() ); + return S_OK; + } + + void mlShutdown() + { + s_tables.clear(); + d3dShutdown(); + } +}
\ No newline at end of file |
