Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 888 of file device.c.
Referenced by device_parent_create_surface(), IDirect3DDevice9Impl_CreateDepthStencilSurface(), IDirect3DDevice9Impl_CreateOffscreenPlainSurface(), and IDirect3DDevice9Impl_CreateRenderTarget().
{ IDirect3DSurface9Impl *object; HRESULT hr; TRACE("device %p, width %u, height %u, format %#x, lockable %#x, discard %#x, level %u, surface %p.\n" "usage %#x, pool %#x, multisample_type %#x, multisample_quality %u.\n", device, Width, Height, Format, Lockable, Discard, Level, ppSurface, Usage, Pool, MultiSample, MultisampleQuality); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DSurface9Impl)); if (!object) { FIXME("Failed to allocate surface memory.\n"); return D3DERR_OUTOFVIDEOMEMORY; } hr = surface_init(object, device, Width, Height, Format, Lockable, Discard, Level, Usage, Pool, MultiSample, MultisampleQuality); if (FAILED(hr)) { WARN("Failed to initialize surface, hr %#x.\n", hr); HeapFree(GetProcessHeap(), 0, object); return hr; } TRACE("Created surface %p.\n", object); *ppSurface = &object->IDirect3DSurface9_iface; return D3D_OK; }