DirectX9RenderTarget

Description

class Tinman.AddOns.DirectX9.DirectX9RenderTarget

Derived from

ResourceBase abstract
IRenderTarget

Full source code is included in the Tinman 3D SDK download.

Implementation of the IRenderTarget interface that uses a Direct3D 9 IDirect3DSurface9* COM object.

Protected / Constructors

DirectX9RenderTarget


protected constructor DirectX9RenderTarget → (6)

textureHandle in : IntPtr

The IDirect3DTexture9* COM pointer that has been obtained by calling IDirect3DDevice9::CreateTexture with D3DUSAGE_RENDERTARGET usage. Upon disposal, Release will be called on the COM pointer.

backbufferHandle in : IntPtr

The IDirect3DSurface9* COM pointer that has been obtained by calling IDirect3DDevice9::CreateRenderTarget resp. IDirect3DDevice9Ex::CreateRenderTargetEx, or IntPtr.Zero (i.e. NULL). Upon disposal, Release will be called on the COM pointer.

depthStencilHandle in : IntPtr

The IDirect3DSurface9* COM pointer that has been obtained by calling IDirect3DDevice9::CreateDepthStencilSurface resp. IDirect3DDevice9Ex::CreateDepthStencilSurfaceEx, or IntPtr.Zero (i.e. NULL). Upon disposal, Release will be called on the COM pointer.

memoryConsumption in : int32

[>=0]
The estimated GPU memory consumption, in bytes.

srgb in : bool

Has RenderTargetFormat.Srgb been specified?

hasDepthStencil in : bool

Has RenderTargetFormat.D24_S8 been specified?

Creates a new instance of DirectX9RenderTarget.

The backbufferHandle in and textureHandle in parameters a mutually exclusive, i.e. one of them should be IntPtr.Zero.

RenderException

If a graphics subsystem error has occurred.