FMX.Types3D.TShaderManager

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTShaderManager

Delphi

TShaderManager = class sealed

C++

class PASCALIMPLEMENTATION TShaderManager : /*[[sealed]]*/ public System::TObject

Properties

Type Visibility Source Unit Parent
class public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D FMX.Types3D

Description

Manages the used shaders.

Different objects can use the same shaders. TShaderManager manages shaders to avoid overloading them in the GPU and compiling the same shaders multiple times. TShaderManager checks whether a shader already exists and then returns the already registered shader. Use the RegisterShader method to register a shader, and RegisterShaderFromData to create a shader from existing sources.

A shader can be unregistered using the UnregisterShader method. To avoid unregistering a shader that can still be used by another object, do not unregister it explicitly. It will be freed by TShaderManager.

See Also