Skip to content

RenderPass<U, Context>

ts
type RenderPass<U, Context> = Omit<
  RawRenderPass<UniformValues>,
  "uniforms" | "render" | "setUniformValues" | "onUpdated"
> & {
  uniforms: U;
  render: (options?: RenderOptions<Context>) => void;
  onUpdated: (callback: UpdatedCallback<U>) => void;
};

A rendering pass with managed uniform sources.

Type Declaration

NameTypeDescription
uniformsUThe original reactive uniform-source object.
render()(options?: RenderOptions<Context>) => voidRenders after resolving uniform sources with the supplied context.
onUpdated()(callback: UpdatedCallback<U>) => voidRegisters a callback whenever a uniform source changes.

Type Parameters

U

U extends UniformSources<any> = UniformSources<any>

Context

Context extends UniformContext = UniformContext

Released under the MIT License.