Lines Matching refs:Level

389 static HRESULT WINAPI IWineD3DTextureImpl_GetLevelDesc(IWineD3DTexture *iface, UINT Level, WINED3DSURFACE_DESC* pDesc) {
392 if (Level < This->baseTexture.levels) {
393 TRACE("(%p) Level (%d)\n", This, Level);
394 return IWineD3DSurface_GetDesc(This->surfaces[Level], pDesc);
396 WARN("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->baseTexture.levels);
400 static HRESULT WINAPI IWineD3DTextureImpl_GetSurfaceLevel(IWineD3DTexture *iface, UINT Level, IWineD3DSurface** ppSurfaceLevel) {
404 if (Level < This->baseTexture.levels) {
405 *ppSurfaceLevel = This->surfaces[Level];
406 IWineD3DSurface_AddRef(This->surfaces[Level]);
408 TRACE("(%p) : returning %p for level %d\n", This, *ppSurfaceLevel, Level);
411 WARN("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->baseTexture.levels);
417 static HRESULT WINAPI IWineD3DTextureImpl_LockRect(IWineD3DTexture *iface, UINT Level, WINED3DLOCKED_RECT *pLockedRect,
422 if (Level < This->baseTexture.levels) {
423 hr = IWineD3DSurface_LockRect(This->surfaces[Level], pLockedRect, pRect, Flags);
426 TRACE("(%p) Level (%d) success\n", This, Level);
428 WARN("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->baseTexture.levels);
434 static HRESULT WINAPI IWineD3DTextureImpl_UnlockRect(IWineD3DTexture *iface, UINT Level) {
438 if (Level < This->baseTexture.levels) {
439 hr = IWineD3DSurface_UnlockRect(This->surfaces[Level]);
442 TRACE("(%p) Level (%d) success\n", This, Level);
444 WARN("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->baseTexture.levels);
453 TRACE("(%p) : dirtyfication of surface Level (0)\n", This);