MCPcopy Index your code
hub / github.com/gpujs/gpu.js / getTextureFormat

Method getTextureFormat

src/backend/web-gl/kernel.js:684–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

682 return this.context.RGBA;
683 }
684 getTextureFormat() {
685 const { context: gl } = this;
686 switch (this.getInternalFormat()) {
687 case gl.RGBA:
688 return gl.RGBA;
689 default:
690 throw new Error('Unknown internal format');
691 }
692 }
693
694 /**
695 *

Callers 2

_setupOutputTextureMethod · 0.95

Calls 1

getInternalFormatMethod · 0.95

Tested by

no test coverage detected