MCPcopy Index your code
hub / github.com/tensorflow/tfjs / getTextureKey

Function getTextureKey

tfjs-backend-webgpu/src/texture_manager.ts:128–132  ·  view source on GitHub ↗
(
    width: number, height: number, format: GPUTextureFormat,
    usage: GPUTextureUsageFlags)

Source from the content-addressed store, hash-verified

126}
127
128function getTextureKey(
129 width: number, height: number, format: GPUTextureFormat,
130 usage: GPUTextureUsageFlags) {
131 return `${width}_${height}_${format}_${usage}`;
132}
133
134function getBytesPerElement(format: GPUTextureFormat) {
135 if (format === 'rgba8unorm') {

Callers 2

acquireTextureMethod · 0.85
releaseTextureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…