MCPcopy
hub / github.com/visgl/deck.gl / render

Method render

modules/core/src/passes/pick-layers-pass.ts:49–60  ·  view source on GitHub ↗
(props: LayersPassRenderOptions | PickLayersPassRenderOptions)

Source from the content-addressed store, hash-verified

47 } | null = null;
48
49 render(props: LayersPassRenderOptions | PickLayersPassRenderOptions): {
50 decodePickingColor: PickingColorDecoder | null;
51 stats: RenderStats[];
52 } {
53 if ('pickingFBO' in props) {
54 // When drawing into an off-screen buffer, use the alpha channel to encode layer index
55 return this._drawPickingBuffer(props);
56 }
57 // When drawing to screen (debug mode), do not use the alpha channel so that result is always visible
58 const stats = super._render(props);
59 return {decodePickingColor: null, stats};
60 }
61
62 // Private
63 // Draws list of layers and viewports into the picking buffer

Callers

nothing calls this directly

Calls 2

_drawPickingBufferMethod · 0.95
_renderMethod · 0.45

Tested by

no test coverage detected