FMX.Types3D.TShaderManager.RegisterShaderFromData
Delphi
class function RegisterShaderFromData(const Name: string; const Kind: TContextShaderKind;
const OriginalSource: string; const Sources: array of TContextShaderSource): TContextShader;
C++
__classmethod TContextShader* __fastcall RegisterShaderFromData(const System::UnicodeString Name, const TContextShaderKind Kind, const System::UnicodeString OriginalSource, const TContextShaderSource *Sources, const int Sources_High);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TShaderManager |
Description
Registers a shader from existing sources.
The Name
parameter specifies the name of the shader to be registered.
The Kind
parameter specifies the shader kind (vertex or pixel).
The OriginalSource
parameter specifies the name of the shader source.
The Sources
parameter is an array of TContextShaderSource that specifies the data source from which to create the shader.
RegisterShaderFromData returns the registered shader. If the shader created from the specified data source already exists, then RegisterShaderFromData returns the already registered shader.