ID3D11Device2::GetImmediateContext2 method
Gets an immediate context, which can play back command lists.
Syntax
void GetImmediateContext2(
[out] ID3D11DeviceContext2 **ppImmediateContext
);
Parameters
- ppImmediateContext [out]
-
Type: ID3D11DeviceContext2**
Upon completion of the method, the passed pointer to an ID3D11DeviceContext2 interface pointer is initialized.
Return value
This method does not return a value.
Remarks
The GetImmediateContext2 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.
The GetImmediateContext2 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.
Requirements
|
Minimum supported client |
Windows 8.1 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 R2 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
See also