Example

Description

sealed class Tinman.Shaders.Demo.Example

Derived from

GpuCode abstract

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

Non-functional syntax examples for GPU code generation.

Public / Methods

CS


[ComputeShader(1, 1, 1)] [If("")]
public static method CS → (2)

in : int3

The shader input.

in : int3

The shader input.

This is a dummy compute shader that with some non-functional example code.

PS


[If("")] [PixelShader]
public static method PS → (2)

data in : VS_In

Dummy shader input.

face in : FACE

Dummy shader input.

returns → PS_Out_Target

Dummy shader output.

This is a dummy shader that calls built-in functions of Gpu-X.