Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11Device1::GetImmediateContext1 method

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

Syntax


void GetImmediateContext1(
  [out] ID3D11DeviceContext1 **ppImmediateContext
);

Parameters

ppImmediateContext [out]

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

Return value

This method does not return a value.

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

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]

Minimum supported phone

Windows Phone 8

Header

D3D11_1.h

Library

D3D11.lib

See also

ID3D11Device1

 

 

Show:
© 2018 Microsoft