FMX.Types3D.TShaderManager.RegisterShaderFromFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function RegisterShaderFromFile(const FileName: string): TContextShader;

C++

__classmethod TContextShader* __fastcall RegisterShaderFromFile(const System::UnicodeString FileName);

Properties

Type Visibility Source Unit Parent
function public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D TShaderManager

Description

Registers a shader loaded from a specified file.

The FileName parameter specifies the name of the file from where to create the shader to be registered.

RegisterShaderFromFile returns the registered shader. If the shader created from the specified file already exists, then RegisterShaderFromFile returns the already registered shader.

See Also