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
CustomShader#destroy must be called when the custom shader is no longer needed to clean up GPU resources properly. The application is responsible for calling this method.
However, the destroy method is not part of the public interface, which is especially troublesome when using typescript.
The current workaround in typescript is to annotate the customShader with as any: (model.customShader as any).destroy();
I understand that the CustomShader is still experimental, but since the documentation is clear about destroy, I expected the API to reflect that.
The text was updated successfully, but these errors were encountered:
As stated by the CustomShader docs:
However, the
destroy
method is not part of the public interface, which is especially troublesome when using typescript.The current workaround in typescript is to annotate the
customShader
withas any
:(model.customShader as any).destroy();
I understand that the
CustomShader
is still experimental, but since the documentation is clear aboutdestroy
, I expected the API to reflect that.The text was updated successfully, but these errors were encountered: