Home | History | Annotate | Download | only in D3D9

Lines Matching defs:source

1826 			sw::Surface *source = static_cast<Direct3DSurface9*>(renderTarget);
1829 void *sourceBuffer = source->lockExternal(0, 0, 0, sw::LOCK_READONLY, sw::PUBLIC);
1857 source->unlockExternal();
5368 Direct3DSurface9 *source = static_cast<Direct3DSurface9*>(sourceSurface);
5371 stretchRect(source, sourceRect, dest, destRect, filter);
5455 sw::Surface *source = static_cast<Direct3DSurface9*>(sourceSurface);
5458 unsigned char *sBuffer = (unsigned char*)source->lockExternal(sRect.left, sRect.top, 0, sw::LOCK_READONLY, sw::PUBLIC);
5460 int sPitch = source->getExternalPitchB();
5505 source->unlockExternal();
5535 IDirect3DTexture9 *source;
5538 sourceTexture->QueryInterface(IID_IDirect3DTexture9, (void**)&source);
5541 ASSERT(source && dest);
5543 for(unsigned int level = 0; level < source->GetLevelCount() && level < dest->GetLevelCount(); level++) // FIXME: Fail when source texture has fewer levels than the destination
5548 source->GetSurfaceLevel(level, &sourceSurface);
5557 source->Release();
5563 IDirect3DVolumeTexture9 *source;
5566 sourceTexture->QueryInterface(IID_IDirect3DVolumeTexture9, (void**)&source);
5569 ASSERT(source && dest);
5571 for(unsigned int level = 0; level < source->GetLevelCount() && level < dest->GetLevelCount(); level++) // FIXME: Fail when source texture has fewer levels than the destination
5576 source->GetVolumeLevel(level, &sourceVolume);
5585 source->Release();
5591 IDirect3DCubeTexture9 *source;
5594 sourceTexture->QueryInterface(IID_IDirect3DCubeTexture9, (void**)&source);
5597 ASSERT(source && dest);
5601 for(unsigned int level = 0; level < source->GetLevelCount() && level < dest->GetLevelCount(); level++) // FIXME: Fail when source texture has fewer levels than the destination
5606 source->GetCubeMapSurface((D3DCUBEMAP_FACES)face, level, &sourceSurface);
5616 source->Release();
6204 void Direct3DDevice9::stretchRect(Direct3DSurface9 *source, const RECT *sourceRect, Direct3DSurface9 *dest, const RECT *destRect, D3DTEXTUREFILTERTYPE filter)
6209 source->GetDesc(&sourceDescription);
6212 int sWidth = source->getWidth();
6213 int sHeight = source->getHeight();
6237 bool equalFormats = source->getInternalFormat() == dest->getInternalFormat();
6250 if(source->hasDepth())
6252 byte *sourceBuffer = (byte*)source->lockInternal(0, 0, 0, sw::LOCK_READONLY, sw::PUBLIC);
6255 unsigned int width = source->getWidth();
6256 unsigned int height = source->getHeight();
6257 unsigned int pitch = source->getInternalPitchB();
6267 source->unlockInternal();
6271 if(source->hasStencil())
6273 byte *sourceBuffer = (byte*)source->lockStencil(0, sw::PUBLIC);
6276 unsigned int width = source->getWidth();
6277 unsigned int height = source->getHeight();
6278 unsigned int pitch = source->getStencilPitchB();
6288 source->unlockStencil();
6294 unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, 0, sw::LOCK_READONLY, sw::PUBLIC);
6296 unsigned int sourcePitch = source->getInternalPitchB();
6301 unsigned int bytes = width * sw::Surface::bytes(source->getInternalFormat());
6319 source->unlockInternal();
6324 renderer->blit(source, sRect, dest, dRect, filter >= D3DTEXF_LINEAR);
6353 sw::Surface *source = static_cast<Direct3DVolume9*>(sourceVolume);
6356 if(source->getExternalPitchB() != dest->getExternalPitchB() ||
6357 source->getExternalSliceB() != dest->getExternalSliceB())
6362 void *sBuffer = source->lockExternal(0, 0, 0, sw::LOCK_READONLY, sw::PUBLIC);
6365 memcpy(dBuffer, sBuffer, source->getExternalSliceB() * sourceDescription.Depth);
6367 source->unlockExternal();