CB_Graphics_Static

Description

[ConstantBuffer]
static class Tinman.Shaders.Graphics.CB_Graphics_Static

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

A constant buffer for use with GraphicsParameters and LineParameters.

Public / Attributes

Line​Thickness


public static attribute LineThickness → (float3)

The constant data field g_lineThickness.

Thick line rendering is active iff float3.z is greater than zero.

See also

LineParameters

Screen​Mask


public static attribute ScreenMask → (float4)

The constant data field g_screenMask.

The screen mask coefficients:

x := minimum screen X-coordinate of mask bounds
y := minimum screen Y-coordinate of mask bounds
z := screen width of mask bounds, in pixels
w := screen height of mask bounds, in pixels

The screen mask is active iff float4.z is greater than zero.

Screen​Size


public static attribute ScreenSize → (float2)

The constant data field g_screenMask.