예제 #1
0
        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));
        }
예제 #2
0
 public BufferArrayBinder(BufferArraySetter <T> data)
 {
     _data = data;
 }