createNodeLink#getNodeColormapForBinding¶
Summary¶
These methods resolve the colormap resource used for node or edge scalar coloring and matching legends.
If the current node or edge colormap is already a Colormap instance, that instance is returned. If it is a built-in name, the matching built-in colormap is returned.
Syntax¶
NodeLink.getNodeColormapForBinding(): Colormap
NodeLink.getEdgeColormapForBinding(): Colormap
const nodeColormap = nodeLink.getNodeColormapForBinding();
const edgeColormap = nodeLink.getEdgeColormapForBinding();
Returns¶
Colormap - The borrowed map for this binding. An external texture view can be bound only on its original device. Check canSampleCPU before reading colors on the CPU.