public class NVTextureArray
extends java.lang.Object
This extension introduces the notion of two-dimensional array textures. An array texture is a collection of two-dimensional images of identical size and format, arranged in layers. Array textures are specified using TexImage3DNV, where the depth is used to indicate the number of layers in the image.
An array texture is accessed as a single unit in a programmable shader, using a single coordinate vector. A single layer is selected, using the "p"
texture coordinate, and that layer is then accessed as though it were a two-dimensional texture. The layer coordinate is provided as an unnormalized
floating-point value in the range [0,<n>-1], where <n> is the number of layers in the array texture. Texture lookups do not filter
between layers, though such filtering can be achieved using programmable shaders. When mipmapping is used, each level of an array texture has the same
number of layers as the base level; the number of layers is not reduced as the image size decreases.
Single layers of array textures can be rendered to by binding them to a framebuffer object using the FramebufferTextureLayerNV function.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_NV
Accepted by the
pname parameter of GetFramebufferAttachmentParameteriv. |
static int |
GL_MAX_ARRAY_TEXTURE_LAYERS_NV
Accepted by the
pname parameter of GetBooleanv, GetIntegerv and GetFloatv. |
static int |
GL_SAMPLER_2D_ARRAY_NV
Returned by the
type parameter of GetActiveUniform. |
static int |
GL_TEXTURE_2D_ARRAY_NV
Accepted by the
target parameter of TexImage3DNV, TexSubImage3DNV, CopyTexSubImage3DNV, CompressedTexImage3DNV, CompressedTexSubImage3DNV,
TexParameteri, TexParameteriv, TexParameterf, TexParameterfv, GenerateMipmap, and BindTexture. |
static int |
GL_TEXTURE_BINDING_2D_ARRAY_NV
Accepted by the
pname parameter of GetBooleanv, GetIntegerv and GetFloatv. |
static int |
GL_UNPACK_IMAGE_HEIGHT_NV
Accepted by the
pname parameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv. |
static int |
GL_UNPACK_SKIP_IMAGES_NV
Accepted by the
pname parameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glCompressedTexImage3DNV(int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
java.nio.ByteBuffer data) |
static void |
glCompressedTexImage3DNV(int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
int imageSize,
long data) |
static void |
glCompressedTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
java.nio.ByteBuffer data) |
static void |
glCompressedTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int imageSize,
long data) |
static void |
glCopyTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int x,
int y,
int width,
int height) |
static void |
glFramebufferTextureLayerNV(int target,
int attachment,
int texture,
int level,
int layer) |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
java.nio.ByteBuffer pixels) |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
float[] pixels)
Array version of:
TexImage3DNV |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
java.nio.FloatBuffer pixels) |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
int[] pixels)
Array version of:
TexImage3DNV |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
java.nio.IntBuffer pixels) |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
long pixels) |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
short[] pixels)
Array version of:
TexImage3DNV |
static void |
glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
java.nio.ShortBuffer pixels) |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.ByteBuffer pixels) |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
float[] pixels)
Array version of:
TexSubImage3DNV |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.FloatBuffer pixels) |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
int[] pixels)
Array version of:
TexSubImage3DNV |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.IntBuffer pixels) |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
long pixels) |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
short[] pixels)
Array version of:
TexSubImage3DNV |
static void |
glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.ShortBuffer pixels) |
static void |
nglCompressedTexImage3DNV(int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
int imageSize,
long data) |
static void |
nglCompressedTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int imageSize,
long data) |
static void |
nglTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
long pixels) |
static void |
nglTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
long pixels) |
public static final int GL_TEXTURE_2D_ARRAY_NV
target parameter of TexImage3DNV, TexSubImage3DNV, CopyTexSubImage3DNV, CompressedTexImage3DNV, CompressedTexSubImage3DNV,
TexParameteri, TexParameteriv, TexParameterf, TexParameterfv, GenerateMipmap, and BindTexture.public static final int GL_TEXTURE_BINDING_2D_ARRAY_NV
pname parameter of GetBooleanv, GetIntegerv and GetFloatv.public static final int GL_MAX_ARRAY_TEXTURE_LAYERS_NV
pname parameter of GetBooleanv, GetIntegerv and GetFloatv.public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_NV
pname parameter of GetFramebufferAttachmentParameteriv.public static final int GL_SAMPLER_2D_ARRAY_NV
type parameter of GetActiveUniform.public static final int GL_UNPACK_SKIP_IMAGES_NV
pname parameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv.public static final int GL_UNPACK_IMAGE_HEIGHT_NV
pname parameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv.public static void nglTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
long pixels)
public static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
java.nio.ByteBuffer pixels)
public static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
long pixels)
public static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
java.nio.ShortBuffer pixels)
public static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
java.nio.IntBuffer pixels)
public static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
java.nio.FloatBuffer pixels)
public static void nglTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
long pixels)
public static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.ByteBuffer pixels)
public static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
long pixels)
public static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.ShortBuffer pixels)
public static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.IntBuffer pixels)
public static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
java.nio.FloatBuffer pixels)
public static void glCopyTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int x,
int y,
int width,
int height)
public static void nglCompressedTexImage3DNV(int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
int imageSize,
long data)
public static void glCompressedTexImage3DNV(int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
int imageSize,
@Nullable
long data)
public static void glCompressedTexImage3DNV(int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
@Nullable
java.nio.ByteBuffer data)
public static void nglCompressedTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int imageSize,
long data)
public static void glCompressedTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int imageSize,
long data)
public static void glCompressedTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
java.nio.ByteBuffer data)
public static void glFramebufferTextureLayerNV(int target,
int attachment,
int texture,
int level,
int layer)
public static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
short[] pixels)
TexImage3DNVpublic static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
int[] pixels)
TexImage3DNVpublic static void glTexImage3DNV(int target,
int level,
int internalFormat,
int width,
int height,
int depth,
int border,
int format,
int type,
@Nullable
float[] pixels)
TexImage3DNVpublic static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
short[] pixels)
TexSubImage3DNVpublic static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
int[] pixels)
TexSubImage3DNVpublic static void glTexSubImage3DNV(int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
float[] pixels)
TexSubImage3DNVCopyright LWJGL. All Rights Reserved. License terms.