Class InferenceEngine::gpu::D3DSurface2DBlob

class D3DSurface2DBlob : public InferenceEngine::gpu::ClImage2DBlob

This class represents an abstraction for GPU plugin remote blob which is shared with Direct3D 11 2D texture. The plugin object derived from this class can be obtained with CreateBlob() call.

Note

User can also obtain OpenCL 2D image handle from this class.

Public Types

using Ptr = std::shared_ptr<D3DSurface2DBlob>

A smart pointer to the D3DSurface2DBlob object.

Public Functions

inline explicit D3DSurface2DBlob(const TensorDesc &tensorDesc)

Creates a D3DSurface2DBlob object with the specified dimensions and layout.

Parameters

tensorDesc – Tensor description

inline operator ID3D11Texture2D*()

ID3D11Texture2D conversion operator for the D3DContext object.

Returns

Pointer to underlying ID3D11Texture2D interface

inline uint32_t plane()

Returns plane ID of underlying video decoder surface, or 0 if no video surface was shared.

Returns

Plane ID