summaryrefslogtreecommitdiffstats
path: root/Whisper/D3D/startup.cpp
blob: 540e7d8c30853a64ddf4939d5ff23850b213cd36 (plain)
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();
}