From 8c4603c73675958efc960fbd4bb599a2909d106a Mon Sep 17 00:00:00 2001 From: Konstantin Date: Mon, 16 Jan 2023 14:52:43 +0100 Subject: Source codes --- Whisper/D3D/startup.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Whisper/D3D/startup.cpp (limited to 'Whisper/D3D/startup.cpp') 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 -- cgit v1.2.3