blob: a7085513ebada45648b6bd48825bf42c4d9fad79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "stdafx.h"
#include "modelFactory.h"
#include "API/iContext.cl.h"
HRESULT COMLIGHTCALL Whisper::loadModel( const wchar_t* path, eModelImplementation impl, const sLoadModelCallbacks* callbacks, iModel** pp )
{
switch( impl )
{
case eModelImplementation::GPU:
return loadGpuModel( path, false, callbacks, pp );
case eModelImplementation::Hybrid:
return loadGpuModel( path, true, callbacks, pp );
case eModelImplementation::Reference:
return loadReferenceCpuModel( path, pp );
}
logError( u8"Unknown model implementation 0x%X", (int)impl );
return E_INVALIDARG;
}
|