FMX.Types3D.TContextShaderVariable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TContextShaderVariable = record

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

Properties

Type Visibility Source Unit Parent
record
struct
public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D FMX.Types3D

Description

Defines a shader variable.

TContextShaderVariable variables are used to communicate with vertex or fragment shaders from outside.

Value Meaning

Name

Keeps the name of the variable.

Kind

Keeps the type of the variable. The types are enumerate by TContextShaderVariableKind.

Index

Keeps the location of the variable.

Size

Keeps the size of the variable.

TextureUnit

Keeps the mapping unit of textures. This field is filled at run time.

See Also