ID3D11Device1::GetImmediateContext1 Method

Gets an immediate context, which can play back command lists.

Syntax

public:
void GetImmediateContext1(
         ID3D11DeviceContext1 **ppImmediateContext
)  

Parameters

ppImmediateContext
Type: ID3D11DeviceContext1 **

[out] Upon completion of the method, the passed pointer to an ID3D11DeviceContext1 interface pointer is initialized.

Return value

None.

Remarks

GetImmediateContext1 returns an ID3D11DeviceContext1 object that represents an immediate context. You can use this immediate context to perform rendering that you want immediately submitted to a device. For most applications, an immediate context is the primary object that is used to draw your scene.

GetImmediateContext1 increments the reference count of the immediate context by one. So, call Release on the returned interface pointer when you are done with it to avoid a memory leak.

Requirements

Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11Device1

ID3D11Device1 Members