const useShaderRef: interface {
<T>(value: T) => Ref<NonNullable<T>>;
<T>(
value?: NonNullable<T>,
) => Ref<NonNullable<T>> | null;
<T>(
value: T,
source?: ShaderSource,
) =>
| StorageSource
| ParsedBundle<any>
| ParsedModule<any>
| LambdaSource<ShaderModule<any>>
| TextureSource
| Ref<NonNullable<T>>
| null;
}
packages / workbench / src / hooks / useShaderRef.ts