You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made a runtime effect with RuntimeEffect.makeForShader(shaderSrc);
I have created the shader with effect.makeShader(Data.makeFromBytes(data), null, null, false) (data being a byte buffer of uniforms)
I created the paint with paint = new Paint(); paint.setShader(shader);
The problem is, none of these classes have a method to update the uniforms in the shader.
How do I do this? I can't just re create the shader as it takes ~3ms to create and uniforms need to be updated each frame.
The text was updated successfully, but these errors were encountered:
I have made a runtime effect with
RuntimeEffect.makeForShader(shaderSrc);
I have created the shader with
effect.makeShader(Data.makeFromBytes(data), null, null, false)
(data being a byte buffer of uniforms)I created the paint with
paint = new Paint(); paint.setShader(shader);
The problem is, none of these classes have a method to update the uniforms in the shader.
How do I do this? I can't just re create the shader as it takes ~3ms to create and uniforms need to be updated each frame.
The text was updated successfully, but these errors were encountered: