Add power 2 warning

This commit is contained in:
schmelczerandras 2020-10-11 22:55:30 +02:00
parent d15874611d
commit da89087ae6
2 changed files with 8 additions and 13 deletions

View file

@ -1,6 +1,14 @@
export enum WrapOptions { export enum WrapOptions {
CLAMP_TO_EDGE = 'CLAMP_TO_EDGE', CLAMP_TO_EDGE = 'CLAMP_TO_EDGE',
/**
* On WebGL it only work with power of 2 texture sizes.
*/
REPEAT = 'REPEAT', REPEAT = 'REPEAT',
/**
* On WebGL it only work with power of 2 texture sizes.
*/
MIRRORED_REPEAT = 'MIRRORED_REPEAT', MIRRORED_REPEAT = 'MIRRORED_REPEAT',
} }

View file

@ -1,16 +1,3 @@
/** @internal */
declare global {
interface Array<T> {
x: number;
y: number;
}
interface Float32Array {
x: number;
y: number;
}
}
/** @internal */ /** @internal */
const setIndexAlias = (name: string, index: number, type: any) => { const setIndexAlias = (name: string, index: number, type: any) => {
if (!Object.prototype.hasOwnProperty.call(type.prototype, name)) { if (!Object.prototype.hasOwnProperty.call(type.prototype, name)) {