Partager via


DDGPESurf::AlignedWidth (Compact 2013)

3/26/2014

This method allows your driver to get information on the width of the memory allocated for the surface.

Syntax

virtual DWORD AlignedWidth();

Parameters

None.

Return Value

Returns the aligned width of the current surface. The aligned width is always greater than or equal to the requested surface width. Typically, you would not use this value in conjunction with drawing operations.

Remarks

When a surface is created, the allocated surface width may differ from the requested surface width. Depending on byte alignment requirements, the requested width might be increased for memory allocation purposes. This operation is invisible to the surface, and does not affect the realized surface width. Because no drawing occurs in the aligned portion of the surface, that part of the surface would typically be ignored.

Requirements

Header

ddgpe.h

Library

Ddgpe.lib

See Also

Reference

DDGPESurf Class
DDGPESurf Class Definition