new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

sharedtexture/methods

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

sharedTexture.importSharedTexture() method

sharedTexture.importSharedTexture(options) is an experimental method available only in the main process. It takes an options object with: textureInfo (SharedTextureImportTextureInfo, required) - the information of the shared texture to import, and allReferencesReleased (Function, optional) - called when all references in all processes are released. You must keep the imported texture valid until this callback is called. Returns SharedTextureImported.

sharedTexture.sendSharedTexture() method

sharedTexture.sendSharedTexture(options, ...args) is an experimental method available only in the main process. It sends an imported shared texture to a renderer process. Options object parameters: frame (WebFrameMain, required) - the target frame to transfer to (for WebContents pass webContents.mainFrame; if providing a non-main frame, enable webPreferences.nodeIntegrationInSubFrames), importedSharedTexture (SharedTextureImported, required) - the imported shared texture. Accepts additional arguments (...args) to pass to the renderer process. Has a 1000ms timeout. You must register a receiver in the renderer process before calling this method. Returns Promise<void> that resolves when transfer is complete.

sharedTexture.setSharedTextureReceiver() method

sharedTexture.setSharedTextureReceiver(callback) is an experimental method available only in the renderer process. It sets a callback Function to receive imported shared textures from the main process. The callback receives receivedSharedTextureData (Object with importedSharedTexture property of type SharedTextureImported) and any additional arguments passed from the main process as ...args.

Give your agent this brain