| 1234567891011121314151617181920212223 |
- import WebGLConstants from "../Core/WebGLConstants.js";
-
- /**
- * @enum {number}
- * @private
- */
- const TextureWrap = {
- CLAMP_TO_EDGE: WebGLConstants.CLAMP_TO_EDGE,
- REPEAT: WebGLConstants.REPEAT,
- MIRRORED_REPEAT: WebGLConstants.MIRRORED_REPEAT,
-
- validate: function (textureWrap) {
- return (
- textureWrap === TextureWrap.CLAMP_TO_EDGE ||
- textureWrap === TextureWrap.REPEAT ||
- textureWrap === TextureWrap.MIRRORED_REPEAT
- );
- },
- };
-
- Object.freeze(TextureWrap);
-
- export default TextureWrap;
|