FMX.Types3D.TContextShaderVariable

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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() {}
};

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
record
struct
public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D FMX.Types3D

Beschreibung

Definiert eine Schattierer-Variable.

TContextShaderVariable-Variablen werden für die Kommunikation mit externen Eckpunkt- oder Fragment-Schattierern verwendet.

Wert Bedeutung

Name

Enthält den Namen der Variable.

Kind

Enthält den Typ der Variable. Die Typen werden von TContextShaderVariableKind aufgezählt.

Index

Enthält die Position der Variable.

Size

Enthält die Größe der Variable.

TextureUnit

Enthält die Zuordnungs-Unit der Texturen. Dieses Feld wird zur Laufzeit gefüllt.

Siehe auch