MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / CRadeonRaysDevice

Method CRadeonRaysDevice

core/src/core/api_radeonrays_device.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33// --------------------------------------------------------------------------------------------------------------------
34
35CRadeonRaysDevice::CRadeonRaysDevice(COpenCLDevice* openCLDevice,
36 IPLRadeonRaysDeviceSettings* settings)
37{
38#if defined(IPL_USES_RADEONRAYS)
39 auto _context = openCLDevice->mHandle.context();
40 if (!_context)
41 throw Exception(Status::Failure);
42
43 auto _openCLDevice = openCLDevice->mHandle.get();
44 if (!_openCLDevice)
45 throw Exception(Status::Failure);
46
47 new (&mHandle) Handle<RadeonRaysDevice>(ipl::make_shared<ipl::RadeonRaysDevice>(_openCLDevice), _context);
48#endif
49}
50
51IRadeonRaysDevice* CRadeonRaysDevice::retain()
52{

Callers

nothing calls this directly

Calls 3

ExceptionClass · 0.85
contextMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected