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/D3D/startup.cpp | |
| parent | 990a8d0dbaefc996244097397259e92758b15cce (diff) | |
Source codes
Diffstat (limited to 'Whisper/D3D/startup.cpp')
| -rw-r--r-- | Whisper/D3D/startup.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Whisper/D3D/startup.cpp b/Whisper/D3D/startup.cpp new file mode 100644 index 0000000..2ff0b0c --- /dev/null +++ b/Whisper/D3D/startup.cpp @@ -0,0 +1,17 @@ +#include "stdafx.h" +#include "startup.h" +#include "device.h" + +HRESULT DirectCompute::d3dStartup() +{ + HRESULT hr = DirectCompute::initialize(); + if( SUCCEEDED( hr ) ) + hr = createComputeShaders(); + return hr; +} + +void DirectCompute::d3dShutdown() +{ + destroyComputeShaders(); + terminate(); +}
\ No newline at end of file |
