MipmapHint.js 439 B

12345678910111213141516171819
  1. import WebGLConstants from "../Core/WebGLConstants.js";
  2. /**
  3. * @private
  4. */
  5. const MipmapHint = {
  6. DONT_CARE: WebGLConstants.DONT_CARE,
  7. FASTEST: WebGLConstants.FASTEST,
  8. NICEST: WebGLConstants.NICEST,
  9. validate: function (mipmapHint) {
  10. return (
  11. mipmapHint === MipmapHint.DONT_CARE ||
  12. mipmapHint === MipmapHint.FASTEST ||
  13. mipmapHint === MipmapHint.NICEST
  14. );
  15. },
  16. };
  17. export default Object.freeze(MipmapHint);