LogoPixi’VN
pixi-jsFunctions

Function: generateShaderSyncCode()

> generateShaderSyncCode(shader, shaderSystem): ShaderSyncFunction

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/shader/GenerateShaderSyncCode.d.ts:9

Internal

Generates the a function that will efficiently sync shader resources with the GPU.

Parameters

shader

Shader

The shader to generate the code for

shaderSystem

GlShaderSystem

An instance of the shader system

Returns

ShaderSyncFunction