ID3D11DeviceX::CreateDeferredContextX Method
Creates a deferred context, which can record command lists. Xbox-specific.
Syntax
public:
HRESULT CreateDeferredContextX(
UINT ContextFlags,
ID3D11DeviceContextX **ppDeferredContext
)
Parameters
ContextFlags
Type: UINT
Context flags. Pass 0, or one or more entries from the enumeration D3D11_CREATE_DEFERRED_CONTEXT_FLAG.
ppDeferredContext
Type: ID3D11DeviceContextX **
[out] Upon completion of the method, the passed pointer to an ID3D11DeviceContextX interface pointer is initialized.
Return value
Type: HRESULT
One of the Direct3D 11 return codes. Returns S_OK if successful; otherwise, returns one of the following:
- Returns DXGI_ERROR_DEVICE_REMOVED if the graphics adapter has been physically removed from the computer or a driver upgrade for the graphics adapter has occurred. If this error occurs, you should destroy and re-create the device.
- Returns DXGI_ERROR_INVALID_CALL if CreateDeferredContextX cannot be called from the current context. For example, if the device was created with the D3D11_CREATE_DEVICE_SINGLETHREADED value (this flag is supported for Windows only, not Xbox One), this method returns DXGI_ERROR_INVALID_CALL.
- Returns E_INVALIDARG if the ContextFlags parameter is invalid.
- Returns E_OUTOFMEMORY if the application has exhausted available memory.
Remarks
See the Remarks section in ID3D11Device1::CreateDeferredContext1.
Requirements
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.
See also
Reference
ID3D11DeviceX Interface
ID3D11DeviceX Members