import { ITexture , TextureType } from "./api/texture.js" ; export const isGL2Context = ( gl ) : gl is WebGL2RenderingContext => typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext ; export const isFloatTexture = ( tex ) => tex . type === TextureType . FLOAT || tex . type === TextureType . HALF_FLOAT || tex . type === TextureType . HALF_FLOAT_OES || tex . type === TextureType . FLOAT_32_UNSIGNED_INT_24_8_REV ;