| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
このクラスによって、ShaderParameter クラスの
type プロパティの有効な値を表す定数が定義されます。各定数は、Flash Player で使用可能な Pixel Bender シェーダ言語のパラメータに対するデータ型のいずれかを表します。
public static const BOOL:String = "bool"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 1 つの Boolean インスタンスに相当する bool 値に定義されていることを示します。
このパラメータは 1 つの値しか取ることができませんが、ShaderParameter.value プロパティは Array なので、1 つの値が value プロパティに割り当てられた Array の唯一のエレメントでなければなりません。次のようになります。
// assumes the shader has a parameter named "param"
// whose data type is bool
myShader.data.param.value = [true];
public static const BOOL2:String = "bool2"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 2 つの Boolean インスタンスの Array に相当する bool2 値に定義されていることを示します。
public static const BOOL3:String = "bool3"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 3 つの Boolean インスタンスの Array に相当する bool3 値に定義されていることを示します。
public static const BOOL4:String = "bool4"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 4 つの Boolean インスタンスの Array に相当する bool4 値に定義されていることを示します。
public static const FLOAT:String = "float"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 1 つの Number インスタンスに相当する float 値に定義されていることを示します。
このパラメータは 1 つの値しか取ることができませんが、ShaderParameter.value プロパティは Array なので、1 つの値が value プロパティに割り当てられた Array の唯一のエレメントでなければなりません。次のようになります。
// assumes the shader has a parameter named "param"
// whose data type is float
myShader.data.param.value = [22.5];
関連項目
public static const FLOAT2:String = "float2"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 2 つの Number インスタンスの Array に相当する float2 値に定義されていることを示します。
関連項目
public static const FLOAT3:String = "float3"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 3 つの Number インスタンスの Array に相当する float3 値に定義されていることを示します。
public static const FLOAT4:String = "float4"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 4 つの Number インスタンスの Array に相当する float4 値に定義されていることを示します。
public static const INT:String = "int"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 1 つの int または uint インスタンスに相当する int 値に定義されていることを示します。
このパラメータは 1 つの値しか取ることができませんが、ShaderParameter.value プロパティは Array なので、1 つの値が value プロパティに割り当てられた Array の唯一のエレメントでなければなりません。次のようになります。
// assumes the shader has a parameter named "param"
// whose data type is int
myShader.data.param.value = [275];
public static const INT2:String = "int2"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 2 つの int または uint インスタンスの Array に相当する int2 値に定義されていることを示します。
public static const INT3:String = "int3"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 3 つの int または uint インスタンスの Array に相当する int3 値に定義されていることを示します。
public static const INT4:String = "int4"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、ActionScript の 4 つの int または uint インスタンスの Array に相当する int4 値に定義されていることを示します。
public static const MATRIX2X2:String = "matrix2x2"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、2 x 2 マトリックスに相当する float2x2 値に定義されていることを示します。このマトリックスは、ActionScript では 4 つの Number インスタンスの Array で表されます。
public static const MATRIX3X3:String = "matrix3x3"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、3 x 3 マトリックスに相当する float3x3 値に定義されていることを示します。このマトリックスは、ActionScript では 9 つの Number インスタンスの Array で表されます。
public static const MATRIX4X4:String = "matrix4x4"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | Flash Player 10, AIR 1.5 |
シェーダパラメータが、4 x 4 マトリックスに相当する float4x4 値に定義されていることを示します。このマトリックスは、ActionScript では 16 の Number インスタンスの Array で表されます。
© 2009 Adobe Systems Incorporated. All rights reserved.
Thu Mar 19 2009, 08:51 PM -07:00 現在のページ: http://livedocs.adobe.com/flex/3_jp/langref/flash/display/ShaderParameterType.html