DirectX11Util

Description

static class Tinman.AddOns.DirectX11.DirectX11Util

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

Helper class for this namespace.

Public / Methods

Constant​Value​For

6 overloads


[Pure]
public static method ConstantValueFor1 → (1)

value in : GpuUpdateFlag

The value.

returns → int32

The D3D11_MAP_* value.

Returns the DirectX11 constant value for the given GpuUpdateFlag value.


[Pure]
public static method ConstantValueFor2 → (2)

value in : RenderTargetFormat

The value.

srgb opt : bool = false

Return the _SRgb variant?

returns → int32

The DXGI_FORMAT_* value or -1 if not supported.

Returns the DirectX11 constant value for the given RenderTargetFormat value.


[Pure]
public static method ConstantValueFor3 → (3)

factory in : ITextureFactory

[not-null]
The texture factory.

value in : TextureFormat

The value.

srgb in : bool

Return the _SRgb variant, if existent?

returns → int32

The DXGI_FORMAT_* value or -1 if not supported.

Returns the DirectX11 constant value for the given TextureFormat value.


[Pure]
public static method ConstantValueFor4 → (1)

value in : VertexElementUsage

The value.

returns → IntPtr

The HLSL semantic name.

Returns the DirectX11 constant value for the given VertexElementUsage value.


[Pure]
public static method ConstantValueFor5 → (2)

value in : Primitive

The value.

patches in : int32

Output patch size for hardware tessellation.

returns → int32

The D3D_PRIMITIVE_TOPOLOGY_* value.

Returns the DirectX11 constant value for the given Primitive value.


[Pure]
public static method ConstantValueFor6 → (1)

value in : VertexElement

The value.

returns → int32

The DXGI_FORMAT_* value or -1 if not supported.

Returns the DirectX11 constant value for the given VertexElement value.

Constant​Value​For​Throw

3 overloads


[Pure]
public static method ConstantValueForThrow1 → (1)

value in : VertexElement

The value.

returns → int32

The DXGI_FORMAT_* value.

Returns the DirectX11 constant value for the given VertexElement value.

RenderException

If value in is not supported.


[Pure]
public static method ConstantValueForThrow2 → (2)

value in : RenderTargetFormat

The value.

srgb opt : bool = false

Return the _SRgb variant, if existent?

returns → int32

The DXGI_FORMAT_* value.

Returns the DirectX11 constant value for the given RenderTargetFormat value.

RenderException

If value in is not supported.


[Pure]
public static method ConstantValueForThrow3 → (3)

factory in : ITextureFactory

[not-null]
The texture factory.

value in : TextureFormat

The value.

srgb in : bool

Return the _SRgb variant, if existent?

returns → int32

The DXGI_FORMAT_* value.

Returns the DirectX11 constant value for the given TextureFormat value.

RenderException

If value in is not supported.

Read​Pixels​Decode​Format


[Pure]
public static method ReadPixelsDecodeFormat → (1)

format in : int32

The DXGI_FORMAT value.

returns → int32

The format in parameter value.

Returns the value of the format in parameter for GraphicsContext.DecodeScanline

Read​Pixels​Decode​Srgb


[Pure]
public static method ReadPixelsDecodeSrgb → (1)

format in : int32

The DXGI_FORMAT value.

returns → bool

The srgb parameter value.

Returns the value of the srgb parameter for GraphicsContext.DecodeScanline.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.