         let pipeline: RenderPipeline
         let sampler: Sampler
         let indexBuffer: Buffer
-        
-        init (vertexBuffer: Buffer, vertexAttributes: [VertexAttributes], pipeline: RenderPipeline, sampler: Sampler, indexBuffer: Buffer) {
+        let indexCount: Int
+        
+        init (vertexBuffer: Buffer, vertexAttributes: [VertexAttributes], pipeline: RenderPipeline, sampler: Sampler, indexBuffer: Buffer, indexCount: Int) {
             self.vertexBuffer = vertexBuffer
             self.vertexAttributes = vertexAttributes
             self.pipeline = pipeline
             self.sampler = sampler
             self.indexBuffer = indexBuffer
+            self.indexCount = indexCount
         }
         
         deinit {

                vertexAttributes: vertexAttributes,
                pipeline: pipeline,
                sampler: sampler,
                indexBuffer: indexBuffer)
            
            context.cache["imageryLayer_reproject"] = reproject
        }

        var attributes = reproject.vertexAttributes
        attributes[1].buffer = webMercatorTBuffer
        
        let vertexArray = VertexArray(attributes: attributes, vertexCount: 128, indexBuffer: reproject.indexBuffer, indexCount: reproject.indexCount)
        
        let textureUsage: TextureUsage = [.RenderTarget, .ShaderRead]
        
