1Name 2 3 NV_texture_npot_2D_mipmap 4 5Name Strings 6 7 GL_NV_texture_npot_2D_mipmap 8 9Contact 10 11 Ian Stewart, NVIDIA Corporation (istewart 'at' nvidia.com) 12 13Status 14 15 Complete. 16 17Version 18 19 Last Modifed Date: April 4, 2011 20 NVIDIA Revision: 1.0 21 22Number 23 24 OpenGL ES Extension #96 25 26Dependencies 27 28 This extension is written against the OpenGL ES 2.0 Specification. 29 30Overview 31 32 Conventional OpenGL ES 2.0 allows the use of non-power-of-two (NPOT) 33 textures with the limitation that mipmap minification filters can 34 not be used. This extension relaxes this restriction and adds 35 limited mipmap support for 2D NPOT textures. 36 37 With this extension, NPOT textures are specified and applied 38 identically to mipmapped power-of-two 2D textures with the following 39 limitations: 40 41 - The texture wrap modes must be CLAMP_TO_EDGE. 42 43 - Coordinates used for texture sampling on an NPOT texture using a 44 mipmapped minification filter must lie within the range [0,1]. 45 Coordinate clamping is not performed by the GL in this case, 46 causing values outside this range to produce undefined results. 47 48IP Status 49 50 NVIDIA Proprietary 51 52New Procedures and Functions 53 54 None 55 56New Tokens 57 58 None 59 60Changes to Chapter 3 of the OpenGL ES 2.0 Specification 61 62 Add the following to "Wrap Mode CLAMP_TO_EDGE" of section 3.7.6: 63 64 CLAMP_TO_EDGE is a valid wrap mode for non-power-of-two textures; 65 however, NPOT textures using a mipmapped minification filter will 66 not have their coordinates clamped by the GL. In this case, 67 coordinates must be given in the range [0,1]; values outside this 68 range will produce undefined results. 69 70 Remove the following from section 3.7.11 (Mipmap Generation): 71 72 If either the width or height of the level zero array are not a 73 power of two, the error INVALID_OPERATION is generated. 74 75 Change the third bullet of Texture Access, section 3.8.2, as follows: 76 77 A two-dimensional sampler is called, the corresponding texture image 78 is a non-power-of-two image (as described in the Mipmapping 79 discussion of section 3.7.7), and the texture wrap mode is not 80 CLAMP_TO_EDGE. 81 82Errors 83 84 None 85 86New State 87 88 None 89 90Issues 91 92 None 93 94Revision History 95 96 Rev. Date Author Changes 97 ---- -------- --------- ------------------------------------- 98 1 04/04/11 istewart First revision. 99