C# Class ShaderInterpreter.Shader

Base shader class with all the HLSL functions available
显示文件 Open project: Patapom/GodComplex

Public Methods

Method Description
_float2 ( double _x ) : float2
_float2 ( double _x, double _y ) : float2
_float3 ( double _x ) : float3
_float3 ( double _x, double _y, double _z ) : float3
_float3 ( double _x, float2 _yz ) : float3
_float3 ( float2 _xy, double _z ) : float3
_float4 ( double _x ) : float4
_float4 ( double _x, double _y, double _z, double _w ) : float4
_float4 ( double _x, double _y, float2 _zw ) : float4
_float4 ( double _x, float2 _yz, double _w ) : float4
_float4 ( float2 _xy, double _z, double _w ) : float4
_float4 ( float2 _xy, float2 _zw ) : float4
_float4 ( float3 _xyz, double _w ) : float4
_uint2 ( uint _x ) : uint2
_uint2 ( uint _x, uint _y ) : uint2
_uint3 ( uint _x ) : uint3
_uint3 ( uint _x, uint _y, uint _z ) : uint3
_uint3 ( uint _x, uint2 _yz ) : uint3
_uint3 ( uint2 _xy, uint _z ) : uint3
_uint4 ( uint _x ) : uint4
_uint4 ( uint _x, uint _y, uint _z, uint _w ) : uint4
_uint4 ( uint _x, uint _y, uint2 _zw ) : uint4
_uint4 ( uint _x, uint2 _yz, uint _w ) : uint4
_uint4 ( uint2 _xy, uint _z, uint _w ) : uint4
_uint4 ( uint2 _xy, uint2 _zw ) : uint4
_uint4 ( uint3 _xyz, uint _w ) : uint4
cos ( float a ) : float
cross ( float3 a, float3 b ) : float3
dot ( float2 a, float2 b ) : float
dot ( float3 a, float3 b ) : float
dot ( float4 a, float4 b ) : float
length ( float2 _value ) : float
length ( float3 _value ) : float
length ( float4 _value ) : float
mul ( float4 a, float4x4 b ) : float4
mul ( float4x4 a, float4 b ) : float4
normalize ( float2 _value ) : float2
normalize ( float3 _value ) : float3
normalize ( float4 _value ) : float4
sin ( float a ) : float
sincos ( float a, float &_sin, float &_cos ) : void

Method Details

_float2() public static method

public static _float2 ( double _x ) : float2
_x double
return ShaderInterpreter.ShaderMath.float2

_float2() public static method

public static _float2 ( double _x, double _y ) : float2
_x double
_y double
return ShaderInterpreter.ShaderMath.float2

_float3() public static method

public static _float3 ( double _x ) : float3
_x double
return ShaderInterpreter.ShaderMath.float3

_float3() public static method

public static _float3 ( double _x, double _y, double _z ) : float3
_x double
_y double
_z double
return ShaderInterpreter.ShaderMath.float3

_float3() public static method

public static _float3 ( double _x, float2 _yz ) : float3
_x double
_yz ShaderInterpreter.ShaderMath.float2
return ShaderInterpreter.ShaderMath.float3

_float3() public static method

public static _float3 ( float2 _xy, double _z ) : float3
_xy ShaderInterpreter.ShaderMath.float2
_z double
return ShaderInterpreter.ShaderMath.float3

_float4() public static method

public static _float4 ( double _x ) : float4
_x double
return ShaderInterpreter.ShaderMath.float4

_float4() public static method

public static _float4 ( double _x, double _y, double _z, double _w ) : float4
_x double
_y double
_z double
_w double
return ShaderInterpreter.ShaderMath.float4

_float4() public static method

public static _float4 ( double _x, double _y, float2 _zw ) : float4
_x double
_y double
_zw ShaderInterpreter.ShaderMath.float2
return ShaderInterpreter.ShaderMath.float4

_float4() public static method

public static _float4 ( double _x, float2 _yz, double _w ) : float4
_x double
_yz ShaderInterpreter.ShaderMath.float2
_w double
return ShaderInterpreter.ShaderMath.float4

_float4() public static method

public static _float4 ( float2 _xy, double _z, double _w ) : float4
_xy ShaderInterpreter.ShaderMath.float2
_z double
_w double
return ShaderInterpreter.ShaderMath.float4

_float4() public static method

public static _float4 ( float2 _xy, float2 _zw ) : float4
_xy ShaderInterpreter.ShaderMath.float2
_zw ShaderInterpreter.ShaderMath.float2
return ShaderInterpreter.ShaderMath.float4

_float4() public static method

public static _float4 ( float3 _xyz, double _w ) : float4
_xyz ShaderInterpreter.ShaderMath.float3
_w double
return ShaderInterpreter.ShaderMath.float4

_uint2() public static method

public static _uint2 ( uint _x ) : uint2
_x uint
return ShaderInterpreter.ShaderMath.uint2

_uint2() public static method

public static _uint2 ( uint _x, uint _y ) : uint2
_x uint
_y uint
return ShaderInterpreter.ShaderMath.uint2

_uint3() public static method

public static _uint3 ( uint _x ) : uint3
_x uint
return ShaderInterpreter.ShaderMath.uint3

_uint3() public static method

public static _uint3 ( uint _x, uint _y, uint _z ) : uint3
_x uint
_y uint
_z uint
return ShaderInterpreter.ShaderMath.uint3

_uint3() public static method

public static _uint3 ( uint _x, uint2 _yz ) : uint3
_x uint
_yz ShaderInterpreter.ShaderMath.uint2
return ShaderInterpreter.ShaderMath.uint3

_uint3() public static method

public static _uint3 ( uint2 _xy, uint _z ) : uint3
_xy ShaderInterpreter.ShaderMath.uint2
_z uint
return ShaderInterpreter.ShaderMath.uint3

_uint4() public static method

public static _uint4 ( uint _x ) : uint4
_x uint
return ShaderInterpreter.ShaderMath.uint4

_uint4() public static method

public static _uint4 ( uint _x, uint _y, uint _z, uint _w ) : uint4
_x uint
_y uint
_z uint
_w uint
return ShaderInterpreter.ShaderMath.uint4

_uint4() public static method

public static _uint4 ( uint _x, uint _y, uint2 _zw ) : uint4
_x uint
_y uint
_zw ShaderInterpreter.ShaderMath.uint2
return ShaderInterpreter.ShaderMath.uint4

_uint4() public static method

public static _uint4 ( uint _x, uint2 _yz, uint _w ) : uint4
_x uint
_yz ShaderInterpreter.ShaderMath.uint2
_w uint
return ShaderInterpreter.ShaderMath.uint4

_uint4() public static method

public static _uint4 ( uint2 _xy, uint _z, uint _w ) : uint4
_xy ShaderInterpreter.ShaderMath.uint2
_z uint
_w uint
return ShaderInterpreter.ShaderMath.uint4

_uint4() public static method

public static _uint4 ( uint2 _xy, uint2 _zw ) : uint4
_xy ShaderInterpreter.ShaderMath.uint2
_zw ShaderInterpreter.ShaderMath.uint2
return ShaderInterpreter.ShaderMath.uint4

_uint4() public static method

public static _uint4 ( uint3 _xyz, uint _w ) : uint4
_xyz ShaderInterpreter.ShaderMath.uint3
_w uint
return ShaderInterpreter.ShaderMath.uint4

cos() public method

public cos ( float a ) : float
a float
return float

cross() public method

public cross ( float3 a, float3 b ) : float3
a ShaderInterpreter.ShaderMath.float3
b ShaderInterpreter.ShaderMath.float3
return ShaderInterpreter.ShaderMath.float3

dot() public method

public dot ( float2 a, float2 b ) : float
a ShaderInterpreter.ShaderMath.float2
b ShaderInterpreter.ShaderMath.float2
return float

dot() public method

public dot ( float3 a, float3 b ) : float
a ShaderInterpreter.ShaderMath.float3
b ShaderInterpreter.ShaderMath.float3
return float

dot() public method

public dot ( float4 a, float4 b ) : float
a ShaderInterpreter.ShaderMath.float4
b ShaderInterpreter.ShaderMath.float4
return float

length() public method

public length ( float2 _value ) : float
_value ShaderInterpreter.ShaderMath.float2
return float

length() public method

public length ( float3 _value ) : float
_value ShaderInterpreter.ShaderMath.float3
return float

length() public method

public length ( float4 _value ) : float
_value ShaderInterpreter.ShaderMath.float4
return float

mul() public method

public mul ( float4 a, float4x4 b ) : float4
a ShaderInterpreter.ShaderMath.float4
b ShaderInterpreter.ShaderMath.float4x4
return ShaderInterpreter.ShaderMath.float4

mul() public method

public mul ( float4x4 a, float4 b ) : float4
a ShaderInterpreter.ShaderMath.float4x4
b ShaderInterpreter.ShaderMath.float4
return ShaderInterpreter.ShaderMath.float4

normalize() public method

public normalize ( float2 _value ) : float2
_value ShaderInterpreter.ShaderMath.float2
return ShaderInterpreter.ShaderMath.float2

normalize() public method

public normalize ( float3 _value ) : float3
_value ShaderInterpreter.ShaderMath.float3
return ShaderInterpreter.ShaderMath.float3

normalize() public method

public normalize ( float4 _value ) : float4
_value ShaderInterpreter.ShaderMath.float4
return ShaderInterpreter.ShaderMath.float4

sin() public method

public sin ( float a ) : float
a float
return float

sincos() public method

public sincos ( float a, float &_sin, float &_cos ) : void
a float
_sin float
_cos float
return void