Skip to content

Commit

Permalink
Remove uniformMatrix4fv
Browse files Browse the repository at this point in the history
  • Loading branch information
Fancy2209 committed Sep 17, 2024
1 parent 88209df commit 45858c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
4 changes: 2 additions & 2 deletions lib/aglsl/AGALTokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export class AGALTokenizer {
desc.native = array.native;
return desc;
} else
return this.decribeAGALByteArray(array);
return this.decribeAGALByteArray(array);
}

public decribeAGALByteArray(bytes: ByteArray): Description {
bytes.position = 0
bytes.position = 0;
const header: Header = new Header();

if (bytes.readUnsignedByte() != 0xa0) {
Expand Down
20 changes: 0 additions & 20 deletions lib/webgl/ProgramWebGL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,26 +357,6 @@ export class ProgramWebGL implements IProgram {
this._gl.uniform4fv(location, value);
}

public uniformMatrix4fv(type: number, transpose: boolean, value:Float32Array):void{
const location = this.getUniformLocation(type)

if (!location) {
return;
}

if (Settings.ENABLE_UNIFORM_CACHE) {
const hash = this._needCache(type * 4, value);

// return undef hash if not require to uppload;
if (hash === void 0) {
return;
}
this._uniformCache[type * 4] = hash;
}

this._gl.uniformMatrix4fv(location, transpose, value)
}

public dispose(): void {
// not real delete progs, because maybe will be recreted in nearest future
// then progs in prety small, we can store 1000 + without overhead
Expand Down

0 comments on commit 45858c6

Please sign in to comment.