opengl:glsl_hlsl
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
opengl:glsl_hlsl [2014/07/02 19:04] – [GLSL/HLSL 命令対応表] oga | opengl:glsl_hlsl [2014/07/02 19:12] – [GLSL/HLSL 命令対応表] oga | ||
---|---|---|---|
行 4: | 行 4: | ||
^ GLSL ^ HLSL ^ MtSL | ^ GLSL ^ HLSL ^ MtSL | ||
| float | float | float | | | | float | float | float | | | ||
- | | | + | | -- |
| vec2/ | | vec2/ | ||
| mat3 | float3x3 | | mat3 | float3x3 | ||
行 32: | 行 32: | ||
| in/out , varying/ | | in/out , varying/ | ||
| builtin gl_* variables | | builtin gl_* variables | ||
+ | |||
行 50: | 行 51: | ||
+ | |||
+ | ^ GLSL ^ HLSL ^ MT | ||
+ | | sampler2D samplerobj | ||
+ | | sampler2DShadow depthobj | ||
+ | | v= texture( samplerobj, texcoord.. ); | v= texobj.Sample( texcoord.. ); | v= texobj.sample( sampler, texcoord .. ) | sampling | ||
+ | | v= texture2D( sampleobj, texcoord.. ); | v= tex2D( sampler, texcoord.. ); | -- | legacy syntax | ||
+ | | v= textureGather( depthobj, texcoord.. ); | v= depthobj.SampleCmp( texcoord.. ); | v= depthobj.sample_compare( ... ) | pcf shadow map | | ||
- | ^ GLSL ^ HLSL ^ ^ | ||
- | | sampler2D samplerobj | ||
- | | sampler2DShadow shadowobj | ||
- | | v= texture( samplerobj, texcoord.. ); | v= textureobj.Sample( texcoord.. ); | sampling | ||
- | | v= texture2D( sampleobj, texcoord.. ); | v= tex2D( sampler, texcoord.. ); | legacy syntax | ||
- | | v= textureGather( sadowobj, texcoord.. ); | v= shadowobj.SampleCmp( texcoord.. ); | pcf shadow map | | ||
opengl/glsl_hlsl.txt · 最終更新: 2016/09/12 14:53 by oga