DirectX12Util

Description

static class Tinman.AddOns.DirectX12.DirectX12Util

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

Helper class for this namespace.

Public / Methods

Constant​Value​For

5 overloads


[Pure]
public static method ConstantValueFor1 → (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 DirectX12 constant value for the given RenderTargetFormat value.


[Pure]
public static method ConstantValueFor2 → (3)

factory in : ITextureFactory

[not-null]
The texture factory.

value in : TextureFormat

[not-null]
The value.

srgb in : bool

Return the _SRgb variant, if existent?

returns → int32

The DXGI_FORMAT_* value or -1 if not supported.

Returns the DirectX12 constant value for the given TextureFormat value.


[Pure]
public static method ConstantValueFor3 → (1)

value in : VertexElementUsage

The value.

returns → string

The HLSL semantic name.

Returns the DirectX12 constant value for the given VertexElementUsage value.


[Pure]
public static method ConstantValueFor4 → (2)

value in : Primitive

The value.

patches in : int32

Output patch size for hardware tessellation?

returns → int32

The D3D_PRIMITIVE_TOPOLOGY_* value.

Returns the DirectX12 constant value for the given Primitive value.


[Pure]
public static method ConstantValueFor5 → (1)

value in : VertexElement

[not-null]
The value.

returns → int32

The DXGI_FORMAT_* value or -1 if not supported.

Returns the DirectX12 constant value for the given VertexElement value.

Constant​Value​For​Throw

4 overloads


[Pure]
public static method ConstantValueForThrow1 → (1)

value in : VertexElement

[not-null]
The value.

returns → int32

The DXGI_FORMAT_* value.

Returns the DirectX12 constant value for the given VertexElement value.

RenderException

If value in is not supported.


public static method ConstantValueForThrow2 → (1)

staticSamplerBorderColor in : int64

The static sample border color, see Colors.

returns → int32

The D3D12_STATIC_BORDER_COLOR_* value.

Returns the DirectX12 constant value for the given static sampler border color.


[Pure]
public static method ConstantValueForThrow3 → (2)

value in : RenderTargetFormat

The value.

srgb opt : bool = false

Return the _SRgb variant, if existent?

returns → int32

The DXGI_FORMAT_* value.

Returns the DirectX12 constant value for the given RenderTargetFormat value.

RenderException

If value in is not supported.


[Pure]
public static method ConstantValueForThrow4 → (3)

factory in : ITextureFactory

[not-null]
The texture factory.

value in : TextureFormat

[not-null]
The value.

srgb in : bool

Return the _SRgb variant, if existent?

returns → int32

The DXGI_FORMAT_* value.

Returns the DirectX12 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.