Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
When the SurfaceHeap class is created, the constructor allocates a heap starting from an address that you specify. Initially, drivers should create a SurfaceHeap object, giving it the total memory size available for graphics. Thereafter, that SurfaceHeap object can be used to request smaller blocks of data.
SurfaceHeap(DWORDsize,ADDRESSbase,SurfaceHeap* pNext,SurfaceHeap* pPrev);
Parameters
- size
The size, in bytes, for the new heap. When you first create your heap, this value should be the total size of available memory. - base
The starting address for the heap. - pNext
The next heap in the list. When the heap is first created, this parameter should be set to NULL. - pPrev
The previous heap in the list. When the heap is first created, this parameter should be set to NULL.
Return Values
None.
Remarks
When a SurfaceHeap object is destroyed, memory that has been allocated for it, and all of its subheaps, is marked for reuse. If the top-level heap is destroyed, all memory is deallocated.
Requirements
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.
See Also
SurfaceHeap Class | SurfaceHeap Class Definition
Send Feedback on this topic to the authors