Gets an immediate context, which can play back command lists.
public:
void GetImmediateContext2(
ID3D11DeviceContext2 **ppImmediateContext
)
ppImmediateContext
Type: ID3D11DeviceContext2 **
[out] Upon completion of the method, the passed pointer to an ID3D11DeviceContext2 interface pointer is initialized.
This method returns an ID3D11DeviceContext2 object that represents an immediate context, which is used to perform rendering that you want immediately submitted to a device. For most apps, an immediate context is the primary object that is used to draw your scene.
This method increments the reference count of the immediate context by one. Therefore, you must call Release on the returned interface pointer when you are done with it, to avoid a memory leak.
Header: Declared in d3d11_x.h (d3d11_2.h in other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib in other Windows platforms).