ユーザ用ツール

サイト用ツール


opengl:glsl_hlsl

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
opengl:glsl_hlsl [2014/07/02 19:18] – [GLSL/HLSL 命令対応表] ogaopengl:glsl_hlsl [2016/09/12 14:53] (現在) – [GLSL/HLSL/Metal 命令対応表] oga
行 1: 行 1:
-====== GLSL/HLSL 命令対応表 ======+====== GLSL/HLSL/Metal 命令対応表 ======
  
 +  * HLSL = DirectX (D3D8/D3D9/D3D10/D3D11/D3D12)
 +  * GLSL = OpenGL 2/3/4, OpenGL ES 2/3, Vulkan, SpliteKit (watchOS)
 +  * Metal = Metal (iOS/tvOS/macOS)
  
-^ GLSL                              ^ HLSL                           MtSL                         ^    ^+ 
 + 
 +^ GLSL                              ^ HLSL                           Metal                        ^    ^
 | float                             | float                          | float                        |    | | float                             | float                          | float                        |    |
 | --                                | float1                         | --                           | HLSLのみ single vector 可能  | | --                                | float1                         | --                           | HLSLのみ single vector 可能  |
行 42: 行 47:
  
  
-^ GLSL                        ^ HLSL                       MT                         ^    ^+^ GLSL                        ^ HLSL                       Metal                      ^    ^
 | 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: 行 57:
  
  
-^ GLSL                                       ^ HLSL                                  ^ MT                                       ^                 ^+^ GLSL                                       ^ HLSL                                  ^ Metal                                    ^                 ^
 | sampler2D samplerobj                       | Texture2D<type> texobj                | texture2d<type> texobj                   | sampler type    | | sampler2D samplerobj                       | Texture2D<type> texobj                | texture2d<type> texobj                   | sampler type    |
 | sampler2DShadow depthobj                   | Texture2D<type> depthobj              | depth2d<type> depthobj                   | sampler type    | | sampler2DShadow depthobj                   | Texture2D<type> depthobj              | depth2d<type> depthobj                   | sampler type    |
行 62: 行 67:
  
  
-^ shader  ^ GLSL                                  ^ HLSL                                    ^ MT                             ^+^ shader  ^ GLSL                                  ^ HLSL                                    ^ Metal                           ^
 | vsh     | in int gl_VertexID;                   | uint var_name : SV_VertexID ;           | <nowiki>uint var_name [[vertex_id]];</nowiki>    | | vsh     | in int gl_VertexID;                   | uint var_name : SV_VertexID ;           | <nowiki>uint var_name [[vertex_id]];</nowiki>    |
 | :::     | in int gl_InstanceID;                 | uint var_name : SV_InstanceID ;         | <nowiki>uint var_name [[instance_id]];</nowiki>  | | :::     | in int gl_InstanceID;                 | uint var_name : SV_InstanceID ;         | <nowiki>uint var_name [[instance_id]];</nowiki>  |
opengl/glsl_hlsl.1404296335.txt.gz · 最終更新: 2014/07/02 19:18 by oga

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki