The ARB_texture_storage extension and OpenGL 4.2 introduced the concept of immutable texture objects. With these objects, once their data store
has been sized and allocated, it could not be resized for the lifetime of the objects (although its content could be updated). OpenGL implementations
may be able to take advantage of the knowledge that the underlying data store of certain objects cannot be deleted or otherwise reallocated without
destruction of the whole object (normally, a much heavier weight and less frequent operation). Immutable storage for all types of textures besides
multisample and buffer textures was introduced by ARB_texture_storage. For completeness, this extension introduces immutable storage for multisampled
textures.
Requires OpenGL 4. or ARB_texture_storage. Promoted to core in OpenGL 4..
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | ||
|---|---|---|---|
| public static void | glTexStorage2DMultisample(int
the target of the operation. One of: target, int
the number of samples in the texture samples, int the sized internal format to be used to store texture image data internalformat, int the width of the texture, in texels width, int the height of the texture, in texels height, boolean whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not
depend on the internal format or size of the image fixedsamplelocations)Specifies storage for a two-dimensional multisample texture. | ||
| public static void | glTexStorage3DMultisample(int
the target of the operation. One of: target, int
the number of samples in the texture samples, int the sized internal format to be used to store texture image data internalformat, int the width of the texture, in texels width, int the height of the texture, in texels height, int the depth of the texture, in texels depth, boolean whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not
depend on the internal format or size of the image fixedsamplelocations)Specifies storage for a two-dimensional multisample array texture. | ||
| public static native void | glTextureStorage2DMultisampleEXT(int
the texture object texture, int the target of the operation. One of: target, int
the number of samples in the texture samples, int the sized internal format to be used to store texture image data internalformat, int the width of the texture, in texels width, int the height of the texture, in texels height, boolean whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not
depend on the internal format or size of the image fixedsamplelocations)DSA version of | ||
| public static native void | glTextureStorage3DMultisampleEXT(int
the texture object texture, int the target of the operation. One of: target, int
the number of samples in the texture samples, int the sized internal format to be used to store texture image data internalformat, int the width of the texture, in texels width, int the height of the texture, in texels height, int the depth of the texture, in texels depth, boolean whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not
depend on the internal format or size of the image fixedsamplelocations)DSA version of |
| ARBTextureStorageMultisample | back to summary |
|---|---|
| protected ARBTextureStorageMultisample() | |
| glTexStorage2DMultisample | back to summary | ||
|---|---|---|---|
| public static void glTexStorage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations) Specifies storage for a two-dimensional multisample texture.
| |||
| glTexStorage3DMultisample | back to summary | ||
|---|---|---|---|
| public static void glTexStorage3DMultisample(int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations) Specifies storage for a two-dimensional multisample array texture.
| |||
| glTextureStorage2DMultisampleEXT | back to summary | ||
|---|---|---|---|
| public static native void glTextureStorage2DMultisampleEXT(int texture, int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations) DSA version of
| |||
| glTextureStorage3DMultisampleEXT | back to summary | ||
|---|---|---|---|
| public static native void glTextureStorage3DMultisampleEXT(int texture, int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations) DSA version of
| |||