public static BufferArrayBinder <T> BindBufferArray <T>(this DiContainer container) where T : struct, IBufferElementData { var data = new BufferArraySetter <T>(); container.Bind <IComponentSetter>().To <BufferArraySetter <T> >().FromInstance(data).AsSingle(); return(new BufferArrayBinder <T>(data)); }
public BufferArrayBinder(BufferArraySetter <T> data) { _data = data; }