DirectX11RenderTarget

Description

class Tinman.AddOns.DirectX11.DirectX11RenderTarget

Derived from

RenderTarget abstract

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

Implementation of the IRenderTarget interface that uses Direct3D 11 resources.

Public / Constructors

Direct​X11​Render​Target


public constructor DirectX11RenderTarget → (9)

size in : Vec2I

The render target size.

format in : RenderTargetFormat

The render target format.

context in : DirectX11Context

The owning graphics context.

textureHandle in : IntPtr own

The ID3D11Texture2D* COM pointer to the texture resource of this render target or IntPtr.Zero if the render target is a swap chain. Upon disposal, Release will be called on the COM pointer.

textureViewHandle in : IntPtr own

The ID3D11ShaderResourceView* COM pointer to the texture resource view of this render target or IntPtr.Zero if the render target is a swap chain. Upon disposal, Release will be called on the COM pointer.

backBufferHandle in : IntPtr own

The ID3D11Texture2D* COM pointer to the backbuffer of this render target or. Upon disposal, Release will be called on the COM pointer.

backBufferViewHandle in : IntPtr own

The ID3D11RenderTargetView* COM pointer to the backbuffer view of this render target. Upon disposal, Release will be called on the COM pointer.

depthStencilHandle in : IntPtr own

The ID3D11Texture2D* COM pointer to the depth/stencil surface of this render target or IntPtr.Zero. Upon disposal, Release will be called on the COM pointer.

depthStencilViewHandle in : IntPtr own

The ID3D11DepthStencilView* COM pointer to the depth/stencil surface view of this render target or IntPtr.Zero. Upon disposal, Release will be called on the COM pointer.

Creates a new instance of DirectX11RenderTarget.

The given format in value does not need to be an exact match for the actual render target properties, but it should be chosen according to these rules: