Lines Matching refs:Level
159 * allocate only for the first level, since it is the only lockable
160 * level. Check apps don't crash if we allocate smaller buffer (some
162 * level) */
244 UINT Level,
247 DBG("This=%p Level=%d pDesc=%p\n", This, Level, pDesc);
249 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
250 user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP),
253 *pDesc = This->surfaces[Level]->desc;
260 UINT Level,
263 DBG("This=%p Level=%d ppSurfaceLevel=%p\n", This, Level, ppSurfaceLevel);
265 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
266 user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP),
269 NineUnknown_AddRef(NineUnknown(This->surfaces[Level]));
270 *ppSurfaceLevel = (IDirect3DSurface9 *)This->surfaces[Level];
277 UINT Level,
282 DBG("This=%p Level=%u pLockedRect=%p pRect=%p Flags=%d\n",
283 This, Level, pLockedRect, pRect, Flags);
285 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
286 user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP),
289 return NineSurface9_LockRect(This->surfaces[Level], pLockedRect,
295 UINT Level )
297 DBG("This=%p Level=%u\n", This, Level);
299 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL);
301 return NineSurface9_UnlockRect(This->surfaces[Level]);