IDirect3DCryptoSession9::GetSurfacePitch method

Gets the stride of a protected surface.

Syntax


HRESULT GetSurfacePitch(
   IDirect3DSurface9 *pSrcSurface,
   UINT              *pSurfacePitch
);

Parameters

pSrcSurface

Pointer to the protected surface.

pSurfacePitch

Receives the stride, in bytes.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A protected surface cannot be locked, so this method provides a way to get the surface stride without locking the surface.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

D3d9.h

See also

GPU-Based Content Protection
IDirect3DCryptoSession9

 

 

Show: