MCPcopy Create free account
hub / github.com/tensorflow/tfjs / shimGetExt

Function shimGetExt

tfjs-react-native/src/platform_react_native.ts:220–234  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

218 //@ts-ignore
219 const getExt = glContext.getExtension.bind(glContext);
220 const shimGetExt = (name: string) => {
221 if (name === "EXT_color_buffer_float") {
222 if (RNPlatform.OS === "ios") {
223 // iOS does not support EXT_color_buffer_float
224 return null;
225 } else {
226 return {};
227 }
228 }
229
230 if (name === "EXT_color_buffer_half_float") {
231 return {};
232 }
233 return getExt(name);
234 };
235
236 //
237 // Manually make 'read' synchronous. glContext has a defined gl.fenceSync

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…