class InferenceEngine::gpu::D3DContext¶
Overview¶
This class represents an abstraction for GPU plugin remote context which is shared with Direct3D 11 device. The plugin object derived from this class can be obtained either with GetContext() method of Executable network or using CreateContext() Core call. More…
#include <gpu_context_api_dx.hpp>
class D3DContext: public InferenceEngine::gpu::ClContext
{
public:
// typedefs
typedef std::shared_ptr<D3DContext> Ptr;
// methods
operator ID3D11Device \* ();
};
Inherited Members¶
public:
// typedefs
typedef std::shared_ptr<RemoteContext> Ptr;
typedef std::shared_ptr<const RemoteContext> CPtr;
typedef std::shared_ptr<ClContext> Ptr;
// methods
template <, , >
bool is();
template <, , >
bool is() const;
template <, , >
T \* as();
template <, , >
const T \* as() const;
virtual std::string getDeviceName() const = 0;
virtual RemoteBlob::Ptrconst TensorDesc&const ParamMap& CreateBlob(, ) = 0;
virtual MemoryBlob::Ptrconst TensorDesc& CreateHostBlob();
virtual ParamMap getParams() const = 0;
const std::shared_ptr<InferenceEngine::RemoteContext> GetHardwareContext();
const std::shared_ptr<const InferenceEngine::RemoteContext> GetHardwareContext() const;
cl_context get();
operator cl_context ();
operator cl::Context ();
Detailed Documentation¶
This class represents an abstraction for GPU plugin remote context which is shared with Direct3D 11 device. The plugin object derived from this class can be obtained either with GetContext() method of Executable network or using CreateContext() Core call.
User can also obtain OpenCL context handle from this class.
Methods¶
operator ID3D11Device \* ()
ID3D11Device conversion operator for the D3DContext object.
Returns:
Pointer to underlying ID3D11Device interface