Home | History | Annotate | Download | only in renderer
      1 //
      2 // Copyright (c) 2002-2014 The ANGLE Project Authors. All rights reserved.
      3 // Use of this source code is governed by a BSD-style license that can be
      4 // found in the LICENSE file.
      5 //
      6 
      7 // generatemip.h: Defines the GenerateMip function, templated on the format
      8 // type of the image for which mip levels are being generated.
      9 
     10 #ifndef LIBGLESV2_RENDERER_GENERATEMIP_H_
     11 #define LIBGLESV2_RENDERER_GENERATEMIP_H_
     12 
     13 #include "libGLESv2/renderer/imageformats.h"
     14 #include "libGLESv2/angletypes.h"
     15 
     16 namespace rx
     17 {
     18 
     19 template <typename T>
     20 inline void GenerateMip(size_t sourceWidth, size_t sourceHeight, size_t sourceDepth,
     21                         const uint8_t *sourceData, size_t sourceRowPitch, size_t sourceDepthPitch,
     22                         uint8_t *destData, size_t destRowPitch, size_t destDepthPitch);
     23 
     24 }
     25 
     26 #include "generatemip.inl"
     27 
     28 #endif // LIBGLESV2_RENDERER_GENERATEMIP_H_
     29