Skip to content

Latest commit

 

History

History
119 lines (83 loc) · 4.61 KB

nf-d3d9-idirect3ddevice9ex-createoffscreenplainsurfaceex.md

File metadata and controls

119 lines (83 loc) · 4.61 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d9.IDirect3DDevice9Ex.CreateOffscreenPlainSurfaceEx
IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx (d3d9.h)
Create an off-screen surface. (IDirect3DDevice9Ex.CreateOffscreenPlainSurfaceEx)
63d121fa-1b4f-16db-b792-c30558006ddb
CreateOffscreenPlainSurfaceEx
CreateOffscreenPlainSurfaceEx method [Direct3D 9]
CreateOffscreenPlainSurfaceEx method [Direct3D 9]
IDirect3DDevice9Ex interface
IDirect3DDevice9Ex interface [Direct3D 9]
CreateOffscreenPlainSurfaceEx method
IDirect3DDevice9Ex.CreateOffscreenPlainSurfaceEx
IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx
d3d9/IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx
direct3d9.idirect3ddevice9ex_createoffscreenplainsurfaceex
direct3d9\idirect3ddevice9ex_createoffscreenplainsurfaceex.htm
direct3d9
VS|directx_sdk|~\idirect3ddevice9ex_createoffscreenplainsurfaceex.htm
12/05/2018
63d121fa-1b4f-16db-b792-c30558006ddb, CreateOffscreenPlainSurfaceEx, CreateOffscreenPlainSurfaceEx method [Direct3D 9], CreateOffscreenPlainSurfaceEx method [Direct3D 9],IDirect3DDevice9Ex interface, IDirect3DDevice9Ex interface [Direct3D 9],CreateOffscreenPlainSurfaceEx method, IDirect3DDevice9Ex.CreateOffscreenPlainSurfaceEx, IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx, d3d9/IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx, direct3d9.idirect3ddevice9ex_createoffscreenplainsurfaceex
d3d9.h
Windows
D3D9.lib
Windows
19H1
IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx
d3d9/IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx
c++
APIRef
kbSyntax
COM
D3D9.lib
D3D9.dll
IDirect3DDevice9Ex.CreateOffscreenPlainSurfaceEx

IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx

-description

Create an off-screen surface.

-parameters

-param Width [in]

Type: UINT

Width of the surface.

-param Height [in]

Type: UINT

Height of the surface.

-param Format [in]

Type: D3DFORMAT

Format of the surface. See D3DFORMAT.

-param Pool [in]

Type: D3DPOOL

Surface pool type. See D3DPOOL.

-param ppSurface [out, retval]

Type: IDirect3DSurface9**

Pointer to the IDirect3DSurface9 interface created.

-param pSharedHandle [in]

Type: HANDLE*

Reserved. Set this parameter to NULL. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

-param Usage [in]

Type: DWORD

Combination of one or more D3DUSAGE constants which can be OR'd together. Value of 0 indicates no usage.

-returns

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be the following: D3DERR_INVALIDCALL.

-remarks

D3DPOOL_SCRATCH will return a surface that has identical characteristics to a surface created by the DirectX 8.x method CreateImageSurface.

D3DPOOL_DEFAULT is the appropriate pool for use with the IDirect3DDevice9::StretchRect and IDirect3DDevice9::ColorFill.

D3DPOOL_MANAGED is not allowed when creating an offscreen plain surface. For more information about memory pools, see D3DPOOL.

Off-screen plain surfaces are always lockable, regardless of their pool types.

-see-also

IDirect3DDevice9Ex