Files

22 lines
390 B
JavaScript
Raw Permalink Normal View History

2026-07-23 14:49:48 +08:00
import {getTransferedObjectUUID} from './classUtils';
const name = 'WebGLShader';
function uuid(id) {
return getTransferedObjectUUID(name, id);
}
export default class WebGLShader {
className = name;
constructor(id, type) {
this.id = id;
this.type = type;
}
static uuid = uuid;
uuid() {
return uuid(this.id);
}
2025-03-20 08:46:07 +08:00
}