Torque3D Documentation / _generateds / GFXD3D11TextureTarget

GFXD3D11TextureTarget

Engine/source/gfx/D3D11/gfxD3D11Target.h

More...

Public Friends

Private Attributes

ID3D11Texture2D *
mTargets [MaxRenderSlotId]
ID3D11ShaderResourceView *
mTargetSRViews [MaxRenderSlotId]
ID3D11View *
mTargetViews [MaxRenderSlotId]

Public Functions

GFXD3D11TextureTarget(bool genMips)

This is called to set the render target.

attachTexture(RenderSlot slot, GFXCubemap * tex, U32 face, U32 mipLevel)

Support binding to cubemaps.

attachTexture(RenderSlot slot, GFXTextureObject * tex, U32 mipLevel, U32 zOffset)

Attach a surface to a given slot as part of this render target.

This is called when the target is not being used anymore.

Returns the texture format of the render target.

Returns the size in pixels of the render target.

Resolve the current render target data to the associated textures.

Note we always copy the Color0 RenderSlot.

When called the resource should restore all device sensitive information destroyed by zombify()

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

Detailed Description

Public Friends

Private Attributes

GFXD3D11TextureObject * mResolveTargets [MaxRenderSlotId]
GFXFormat mTargetFormat 
ID3D11Texture2D * mTargets [MaxRenderSlotId]
Point2I mTargetSize 
ID3D11ShaderResourceView * mTargetSRViews [MaxRenderSlotId]
ID3D11View * mTargetViews [MaxRenderSlotId]

Public Functions

GFXD3D11TextureTarget(bool genMips)

~GFXD3D11TextureTarget()

activate()

Reimplemented from: GFXTarget

attachTexture(RenderSlot slot, GFXCubemap * tex, U32 face, U32 mipLevel)

Reimplemented from: GFXTextureTarget

attachTexture(RenderSlot slot, GFXTextureObject * tex, U32 mipLevel, U32 zOffset)

Reimplemented from: GFXTextureTarget

deactivate()

Reimplemented from: GFXTarget

getFormat()

Reimplemented from: GFXTarget

getSize()

Reimplemented from: GFXTarget

resolve()

Reimplemented from: GFXTextureTarget

resolveTo(GFXTextureObject * tex)

Reimplemented from: GFXTarget

resurrect()

Reimplemented from: GFXResource

zombify()

Reimplemented from: GFXResource