GraphicsParameters

Description

sealed class Tinman.Engine.Rendering.Effects.GraphicsParameters

Derived from

RenderEffectParameters abstract

Render effect parameters for IGraphicsEffect.

The following low-level render effect parameter slots are always defined:

Public / Constants

Changed​Colors


public constant ChangedColors → (1:int32)

Changed flag for Colors.

Changed​Image


public constant ChangedImage → (1 << 1:int32)

Changed flag for Image.

Changed​Line


public constant ChangedLine → (1 << 2:int64)

Changed flag for Line.

Changed​Screen​Offset


public constant ChangedScreenOffset → (1 << 3:int32)

Changed flag for ScreenOffset.

Changed​Screen​Size


public constant ChangedScreenSize → (1 << 4:int32)

Changed flag for ScreenSize.

Changed​Slice


public constant ChangedSlice → (1 << 5:int32)

Changed flag for Slice.

Flag​No​Texture​Arrays


public constant FlagNoTextureArrays → (1:int32)

Disable use of texture arrays.

Pass​Default


public constant PassDefault → (0:int32)

The default pass of the render effect.

Pass​Line


public constant PassLine → (1:int32)

The pass for rendering thick lines.

Public / Constructors

Graphics​Parameters


public constructor GraphicsParameters → (1)

featureLevel in : LineFeatureLevel

The required feature level.

Creates a new instance of GraphicsParameters.

Public / Attributes

Colors


public attribute Colors → (get,set)

value : Vec4I

The color channel sources. The Vec4I.X, Vec4I.Y, Vec4I.Z, Vec4I.W components specify the color source for the red, green, blue and alpha channel output, respectively. The color source values 0, 1, 2, 3, 4, 5, 6 specify the red, green, blue, alpha, all-zero, all-one, luminance input channel, respectively.

The color channel sources to use for 2D rendering.

Defaults to Vec4I.Zero.

Image


public attribute Image → (get,set)

value : ITexture2D

The texture image.

Current texture image.

Defaults to null.

Line


public readonly attribute Line → (LineParameters)

The aggregated line parameters.

Screen​Offset


public attribute ScreenOffset → (get,set)

value : Vec2F

The translation offset.

Current translation offset for screen coordinates, in pixels.

Defaults to Vec2F.Zero.

Screen​Size


public attribute ScreenSize → (get,set)

value : Vec2I

The screen size.

Size of the screen, in pixels.

Defaults to Vec2F.Zero.

Slice


public attribute Slice → (get,set)

value : int32

The texture slice.

Current texture slice.

Defaults to 0.

Slot​Image


public attribute SlotImage → (get)

value : int32

The slot index or -1 if not declared.

Index of a low-level parameter slot.