MCPcopy Create free account
hub / github.com/Twinklebear/webgpu-gltf / constructor

Method constructor

src/glb_import.js:553–558  ·  view source on GitHub ↗
(sampler, image)

Source from the content-addressed store, hash-verified

551
552export class GLTFTexture {
553 constructor(sampler, image) {
554 this.gltfsampler = sampler;
555 this.sampler = sampler.sampler;
556 this.image = image;
557 this.imageView = image.createView();
558 }
559}
560
561export class GLBModel {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected