Skip to main content

Type Alias: SelectVolumeStrategy()

SelectVolumeStrategy: (context) => IVolumeRenderStrategy | undefined

Chooses the strategy of one render.

This runs on the frame path, and it cannot fail. The provider already built every strategy, so this function chooses among them and never allocates. There is no refusal to answer, and nothing to repeat.

The phase of a render is not a field here. A phased render is tightly bound to how that render draws, so the render component that implements phases adds the fields that its own function reads. A reader therefore takes the fields that it needs by name, and does not assume that this record holds nothing else.

Parameters​

• context: SelectVolumeStrategyContext

Returns​

IVolumeRenderStrategy | undefined

the strategy, or undefined to bind no texture at all

Defined in​

packages/core/src/RenderingEngine/helpers/volumeRenderStrategy.ts:159