Class NVTextureArray
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccepted by thepnameparameter of GetFramebufferAttachmentParameteriv.static final intAccepted by thepnameparameter of GetBooleanv, GetIntegerv and GetFloatv.static final intReturned by thetypeparameter of GetActiveUniform.static final intAccepted by thetargetparameter of TexImage3DNV, TexSubImage3DNV, CopyTexSubImage3DNV, CompressedTexImage3DNV, CompressedTexSubImage3DNV, TexParameteri, TexParameteriv, TexParameterf, TexParameterfv, GenerateMipmap, and BindTexture.static final intAccepted by thepnameparameter of GetBooleanv, GetIntegerv and GetFloatv.static final intAccepted by thepnameparameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv.static final intAccepted by thepnameparameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglCompressedTexImage3DNV(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data) static voidglCompressedTexImage3DNV(int target, int level, int internalformat, int width, int height, int depth, int border, @Nullable ByteBuffer data) static voidglCompressedTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data) static voidglCompressedTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data) static voidglCopyTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) static voidglFramebufferTextureLayerNV(int target, int attachment, int texture, int level, int layer) static voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, float @Nullable [] pixels) Array version of:TexImage3DNVstatic voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int @Nullable [] pixels) Array version of:TexImage3DNVstatic voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, long pixels) static voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, short @Nullable [] pixels) Array version of:TexImage3DNVstatic voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable ByteBuffer pixels) static voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable FloatBuffer pixels) static voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable IntBuffer pixels) static voidglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable ShortBuffer pixels) static voidglTexSubImage3DNV(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:TexSubImage3DNVstatic voidglTexSubImage3DNV(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:TexSubImage3DNVstatic voidglTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels) static voidglTexSubImage3DNV(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:TexSubImage3DNVstatic voidglTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer pixels) static voidglTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, FloatBuffer pixels) static voidglTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) static voidglTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) static voidnglCompressedTexImage3DNV(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data) static voidnglCompressedTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data) static voidnglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, long pixels) static voidnglTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels)
-
Field Details
-
GL_TEXTURE_2D_ARRAY_NV
public static final int GL_TEXTURE_2D_ARRAY_NVAccepted by thetargetparameter of TexImage3DNV, TexSubImage3DNV, CopyTexSubImage3DNV, CompressedTexImage3DNV, CompressedTexSubImage3DNV, TexParameteri, TexParameteriv, TexParameterf, TexParameterfv, GenerateMipmap, and BindTexture.- See Also:
-
GL_TEXTURE_BINDING_2D_ARRAY_NV
public static final int GL_TEXTURE_BINDING_2D_ARRAY_NVAccepted by thepnameparameter of GetBooleanv, GetIntegerv and GetFloatv.- See Also:
-
GL_MAX_ARRAY_TEXTURE_LAYERS_NV
public static final int GL_MAX_ARRAY_TEXTURE_LAYERS_NVAccepted by thepnameparameter of GetBooleanv, GetIntegerv and GetFloatv.- See Also:
-
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_NV
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_NVAccepted by thepnameparameter of GetFramebufferAttachmentParameteriv.- See Also:
-
GL_SAMPLER_2D_ARRAY_NV
public static final int GL_SAMPLER_2D_ARRAY_NVReturned by thetypeparameter of GetActiveUniform.- See Also:
-
GL_UNPACK_SKIP_IMAGES_NV
public static final int GL_UNPACK_SKIP_IMAGES_NVAccepted by thepnameparameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv.- See Also:
-
GL_UNPACK_IMAGE_HEIGHT_NV
public static final int GL_UNPACK_IMAGE_HEIGHT_NVAccepted by thepnameparameter of PixelStorei, GetBooleanv, GetIntegerv and GetFloatv.- See Also:
-
-
Method Details
-
nglTexImage3DNV
public static void nglTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, long pixels) -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable ByteBuffer pixels) -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, long pixels) -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable ShortBuffer pixels) -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable IntBuffer pixels) -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, @Nullable FloatBuffer pixels) -
nglTexSubImage3DNV
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) -
glTexSubImage3DNV
public static void glTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer pixels) -
glTexSubImage3DNV
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) -
glTexSubImage3DNV
public static void glTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) -
glTexSubImage3DNV
public static void glTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) -
glTexSubImage3DNV
public static void glTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, FloatBuffer pixels) -
glCopyTexSubImage3DNV
public static void glCopyTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) -
nglCompressedTexImage3DNV
public static void nglCompressedTexImage3DNV(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data) -
glCompressedTexImage3DNV
public static void glCompressedTexImage3DNV(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data) -
glCompressedTexImage3DNV
public static void glCompressedTexImage3DNV(int target, int level, int internalformat, int width, int height, int depth, int border, @Nullable ByteBuffer data) -
nglCompressedTexSubImage3DNV
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) -
glCompressedTexSubImage3DNV
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) -
glCompressedTexSubImage3DNV
public static void glCompressedTexSubImage3DNV(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data) -
glFramebufferTextureLayerNV
public static void glFramebufferTextureLayerNV(int target, int attachment, int texture, int level, int layer) -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, short @Nullable [] pixels) Array version of:TexImage3DNV -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int @Nullable [] pixels) Array version of:TexImage3DNV -
glTexImage3DNV
public static void glTexImage3DNV(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, float @Nullable [] pixels) Array version of:TexImage3DNV -
glTexSubImage3DNV
public 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 -
glTexSubImage3DNV
public 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 -
glTexSubImage3DNV
public 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
-