Value

Description

enum Tinman.Gpu.Semantic.Value

Enumeration of system values that have special semantics.

See also

System

Public / Constants

None

public constant None → (0:int32)

The value does not represent a special system value.

Position

public constant Position → (1:int32)

The value represents the vertex position.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  no   |  no
VS |  no   |  yes
TP |  yes  |  yes
TV |  yes  |  yes
GS |  yes  |  yes
PS |  yes  |  no

When used as input of a Pixel Shader, it specifies the window coordinates of the pixel. Otherwise, it specifies the vertex coordinates in clip-space.

Target

public constant Target → (2:int32)

The value is output to a color target.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  no   |  no
VS |  no   |  no
TP |  no   |  no
TV |  no   |  no
GS |  no   |  no
PS |  no   |  yes

Depth

public constant Depth → (3:int32)

The value is output to the depth buffer.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  no   |  no
VS |  no   |  no
TP |  no   |  no
TV |  no   |  no
GS |  no   |  no
PS |  no   |  yes
See also

PixelShader

DepthLessEqual

public constant DepthLessEqual → (4:int32)

The value is output to the depth buffer.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  no   |  no
VS |  no   |  no
TP |  no   |  no
TV |  no   |  no
GS |  no   |  no
PS |  no   |  yes

DepthGreaterEqual

public constant DepthGreaterEqual → (5:int32)

The value is output to the depth buffer.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  no   |  no
VS |  no   |  no
TP |  no   |  no
TV |  no   |  no
GS |  no   |  no
PS |  no   |  yes

DispatchId

public constant DispatchId → (6:int32)

The ID-tuple of the dispatched GPU thread group.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  yes  |  no
VS |  no   |  no
TP |  no   |  no
TV |  no   |  no
GS |  no   |  no
PS |  no   |  no

ThreadId

public constant ThreadId → (7:int32)

The ID-tuple of the dispatched thread in its group.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  yes  |  no
VS |  no   |  no
TP |  no   |  no
TV |  no   |  no
GS |  no   |  no
PS |  no   |  no

TessellateFactorInner

public constant TessellateFactorInner → (8:int32)

The inside tessellation factor.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  no   |  no
VS |  no   |  no
TP |  no   |  yes
TV |  yes  |  no
GS |  no   |  no
PS |  no   |  no

TessellateFactorOuter

public constant TessellateFactorOuter → (9:int32)

The outside tessellation factors.

This system value may be used by these shaders:

   | input | output
---+-------+--------
CS |  no   |  no
VS |  no   |  no
TP |  no   |  yes
TV |  yes  |  no
GS |  no   |  no
PS |  no   |  no