 	
 	import flash.display3D.Context3D;
 	import flash.display3D.Context3DProgramType;
-
+	
 	public final class DrawCall
 	{
+		private var _vertexConstants	: Vector.<Number>					= null;
+		private var _fragmentConstants	: Vector.<Number>					= null;
+		private var _textureResources	: Vector.<ITextureResource>			= new Vector.<ITextureResource>(8, true);
 		private var _bindings			: Vector.<IParameterBinding>		= null;
 		private var _nameToBinding		: Object							= {};
-		private var _vertexConstants	: Vector.<Number>					= null;
-		private var _fragmentConstants	: Vector.<Number>					= null;
 		
 		private var _numVertexBuffers	: int								= 0;
 		private var _vertexBuffers		: Vector.<VertexBuffer3DResource>	= new Vector.<VertexBuffer3DResource>(8, true);

{
	import aerys.minko.render.resource.IndexBuffer3DResource;
	import aerys.minko.render.resource.VertexBuffer3DResource;
	import aerys.minko.render.shader.binding.IParameterBinding;
	import aerys.minko.type.stream.IVertexStream;
	import aerys.minko.type.stream.IndexStream;

				Context3DProgramType.FRAGMENT,
				0,
				_fragmentConstants
			);
			
			context.setTextureAt(
				0,
				_textureResources[0] ? _textureResources[0].getNativeTexture(context) : null
			);
			context.setTextureAt(
				1,
				_textureResources[1] ? _textureResources[0].getNativeTexture(context) : null
			);
			context.setTextureAt(
				2,
				_textureResources[2] ? _textureResources[0].getNativeTexture(context) : null
			);
			context.setTextureAt(
				3,
				_textureResources[3] ? _textureResources[0].getNativeTexture(context) : null
			);
			context.setTextureAt(
				4,
				_textureResources[4] ? _textureResources[0].getNativeTexture(context) : null
			);
			context.setTextureAt(
				5,
				_textureResources[5] ? _textureResources[0].getNativeTexture(context) : null
			);
			context.setTextureAt(
				6,
				_textureResources[6] ? _textureResources[0].getNativeTexture(context) : null
			);
			context.setTextureAt(
				7,
				_textureResources[7] ? _textureResources[0].getNativeTexture(context) : null
			);
			
			context.setVertexBufferAt(
