opengl:glsl_hlsl
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
opengl:glsl_hlsl [2014/07/02 19:12] – [GLSL/HLSL 命令対応表] oga | opengl:glsl_hlsl [2016/09/12 14:52] – [GLSL/HLSL 命令対応表] oga | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== GLSL/HLSL 命令対応表 ====== | + | ====== GLSL/HLSL/ |
- | ^ GLSL ^ HLSL | + | |
+ | ^ GLSL ^ HLSL | ||
| float | float | float | | | | float | float | float | | | ||
| -- | float1 | | -- | float1 | ||
行 42: | 行 43: | ||
- | ^ GLSL ^ HLSL | + | ^ GLSL ^ HLSL |
| inversesqrt( x ) | rsqrt( x ) | rsqrt( x ) | 1/sqrt( x ) | | | inversesqrt( x ) | rsqrt( x ) | rsqrt( x ) | 1/sqrt( x ) | | ||
| mix( x, y, s ) | lerp( x, y, s ) | mix( x, y, s ) | | mix( x, y, s ) | lerp( x, y, s ) | mix( x, y, s ) | ||
行 52: | 行 53: | ||
- | ^ GLSL ^ HLSL ^ MT ^ ^ | + | ^ GLSL ^ HLSL ^ Metal |
| sampler2D samplerobj | | sampler2D samplerobj | ||
| sampler2DShadow depthobj | | sampler2DShadow depthobj | ||
行 62: | 行 63: | ||
- | ^ shader | + | ^ shader |
- | | vsh | in int gl_VertexID; | + | | vsh | in int gl_VertexID; |
- | | ::: | in int gl_InstanceID; | + | | ::: | in int gl_InstanceID; |
- | | fsh/psh | out vec4 color; (GL2: gl_FragColor) | + | | ::: | out vec4 gl_Position; |
- | | ::: | out float gl_FragDepth; | + | | fsh/psh | out vec4 color; (GL2: gl_FragColor) |
+ | | ::: | out float gl_FragDepth; | ||
opengl/glsl_hlsl.txt · 最終更新: 2016/09/12 14:53 by oga