FMX.Types3D.TContextShaderVariable
Delphi
TContextShaderVariable = record
Name: string;
Kind: TContextShaderVariableKind;
Index: Integer;
Size: Integer;
ShaderKind: TContextShaderKind;
TextureUnit: Integer;
constructor Create(const Name: string; const Kind: TContextShaderVariableKind; const Index, Size: Integer);
end;
C++
struct DECLSPEC_DRECORD TContextShaderVariable
{
public:
System::UnicodeString Name;
TContextShaderVariableKind Kind;
int Index;
int Size;
TContextShaderKind ShaderKind;
int TextureUnit;
__fastcall TContextShaderVariable(const System::UnicodeString Name, const TContextShaderVariableKind Kind, const int Index, const int Size);
TContextShaderVariable() {}
};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
record struct |
public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | FMX.Types3D |
説明
シェーダ変数を定義するものです。
TContextShaderVariable の変数は、外部から頂点シェーダやフラグメント シェーダと通信するために使用されます。
値 | 意味 |
---|---|
|
変数の名前を保持します。 |
|
変数の種類を保持します。種類は TContextShaderVariableKind に列挙されています。 |
|
変数の位置を保持します。 |
|
変数のサイズを保持します。 |
|
テクスチャのマッピング ユニットを保持します。このフィールドは実行時に設定されます。 |