28 #ifndef __D3D11PIXELBUFFER_H__
29 #define __D3D11PIXELBUFFER_H__
D3D11_BOX OgreImageBoxToDx11Box(const Image::Box &inBox) const
D3D11Texture * mParentTexture
This class represents a RenderTarget that renders to a Texture.
~D3D11HardwarePixelBuffer()
vector< RenderTexture * >::type SliceTRT
Render targets.
void unlockImpl(void)
Unlock a box.
void fromD3DLock(PixelBox &rval, const DXGI_MAPPED_RECT &lrect)
Util functions to convert a D3D locked box to a pixel box.
void _genMipmaps()
Internal function to update mipmaps on update of level 0.
void blit(const HardwarePixelBufferSharedPtr &src, const Image::Box &srcBox, const Image::Box &dstBox)
Copies a box from another PixelBuffer to a region of the this PixelBuffer.
PixelBox lockImpl(const Image::Box lockBox, LockOptions options)
Lock a box.
LockOptions
Locking options.
Structure used to define a box in a 3-D integer space.
PixelFormat
The pixel format used for images, textures, and render surfaces.
void blitFromMemory(const PixelBox &src, const Image::Box &dstBox)
Copies a region from normal memory to a region of this pixelbuffer.
Usage
Enums describing buffer usage; not mutually exclusive.
D3D11Texture * getParentTexture() const
Shared pointer implementation used to share pixel buffers.
Specialisation of HardwareBuffer for a pixel buffer.
void blitToMemory(const Image::Box &srcBox, const PixelBox &dst)
Copies a region of this pixelbuffer to normal memory.
virtual void _clearSliceRTT(size_t zoffset)
Notify TextureBuffer of destruction of render target.
D3D11Device & mDevice
D3DDevice pointer.
RenderTexture * getRenderTarget(size_t zoffset)
Get rendertarget for z slice.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
size_t getSubresourceIndex() const
D3D11HardwarePixelBuffer(D3D11Texture *parentTexture, D3D11Device &device, size_t subresourceIndex, size_t width, size_t height, size_t depth, size_t face, PixelFormat format, HardwareBuffer::Usage usage)