MQL5 ReferenceWorking with DirectXDXShaderTexturesSet 

DXShaderTexturesSet

Sets shader textures.

bool  DXShaderTexturesSet(
   int          shader,         // shader handle
   const  int&  textures[]      // array of structure handles
   );

Parameters

shader

[in]  Handle of a shader created in DXShaderCreate().

textures[]

[in]  Array of texture handles created using DXTextureCreate().

Return Value

In case of successful execution, returns true, otherwise - false. To receive an error code, the GetLastError() function should be called.

Note

The size of the texture array should be equal to the number of Texture2D objects declared in the shader code.