public class EXTVertexAttrib64bit
extends java.lang.Object
This extension provides OpenGL shading language support for vertex shader inputs with 64-bit floating-point components and OpenGL API support for specifying the value of those inputs using vertex array or immediate mode entry points. This builds on the support for general-purpose support for 64-bit floating-point values in the ARB_gpu_shader_fp64 extension.
This extension provides a new class of vertex attribute functions, beginning with "VertexAttribL" ("L" for "long"), that can be used to specify attributes with 64-bit floating-point components. This extension provides no automatic type conversion between attribute and shader variables; single-precision attributes are not automatically converted to double-precision or vice versa. For shader variables with 64-bit component types, the "VertexAttribL" functions must be used to specify attribute values. For other shader variables, the "VertexAttribL" functions must not be used. If a vertex attribute is specified using the wrong attribute function, the values of the corresponding shader input are undefined. This approach requiring matching types is identical to that used for the "VertexAttribI" functions provided by OpenGL 3.0 and the EXT_gpu_shader4 extension.
Additionally, some vertex shader inputs using the wider 64-bit components may count double against the implementation-dependent limit on the number of vertex shader attribute vectors. A 64-bit scalar or a two-component vector consumes only a single generic vertex attribute; three- and four-component "long" may count as two. This approach is similar to the one used in the current GL where matrix attributes consume multiple attributes.
Note that 64-bit generic vertex attributes were nominally supported beginning with the introduction of vertex shaders in OpenGL 2.0. However, the OpenGL Shading Language at the time had no support for 64-bit data types, so any such values were automatically converted to 32-bit.
Support for 64-bit floating-point vertex attributes in this extension can be combined with other extensions. In particular, this extension provides an entry point that can be used with EXT_direct_state_access to directly set state for any vertex array object. Also, the related NV_vertex_attrib_integer_64bit extension provides an entry point to specify bindless vertex attribute arrays with 64-bit components, integer or floating-point.
Requires OpenGL 3.0 and ARB_gpu_shader_fp64 (or equivalent functionality).
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_DOUBLE_MAT2_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT2x3_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT2x4_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT3_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT3x2_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT3x4_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT4_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT4x2_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_MAT4x3_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_VEC2_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_VEC3_EXT
Returned in the
type parameter of GetActiveAttrib. |
static int |
GL_DOUBLE_VEC4_EXT
Returned in the
type parameter of GetActiveAttrib. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glGetVertexAttribLdvEXT(int index,
int pname,
double[] params)
Array version of:
GetVertexAttribLdvEXT |
static void |
glGetVertexAttribLdvEXT(int index,
int pname,
java.nio.DoubleBuffer params) |
static void |
glVertexArrayVertexAttribLOffsetEXT(int vaobj,
int buffer,
int index,
int size,
int type,
int stride,
long offset)
DSA version of
VertexAttribLPointer. |
static void |
glVertexAttribL1dEXT(int index,
double x) |
static void |
glVertexAttribL1dvEXT(int index,
double[] v)
Array version of:
VertexAttribL1dvEXT |
static void |
glVertexAttribL1dvEXT(int index,
java.nio.DoubleBuffer v) |
static void |
glVertexAttribL2dEXT(int index,
double x,
double y) |
static void |
glVertexAttribL2dvEXT(int index,
double[] v)
Array version of:
VertexAttribL2dvEXT |
static void |
glVertexAttribL2dvEXT(int index,
java.nio.DoubleBuffer v) |
static void |
glVertexAttribL3dEXT(int index,
double x,
double y,
double z) |
static void |
glVertexAttribL3dvEXT(int index,
double[] v)
Array version of:
VertexAttribL3dvEXT |
static void |
glVertexAttribL3dvEXT(int index,
java.nio.DoubleBuffer v) |
static void |
glVertexAttribL4dEXT(int index,
double x,
double y,
double z,
double w) |
static void |
glVertexAttribL4dvEXT(int index,
double[] v)
Array version of:
VertexAttribL4dvEXT |
static void |
glVertexAttribL4dvEXT(int index,
java.nio.DoubleBuffer v) |
static void |
glVertexAttribLPointerEXT(int index,
int size,
int stride,
java.nio.DoubleBuffer pointer) |
static void |
glVertexAttribLPointerEXT(int index,
int size,
int type,
int stride,
java.nio.ByteBuffer pointer) |
static void |
glVertexAttribLPointerEXT(int index,
int size,
int type,
int stride,
long pointer) |
static void |
nglGetVertexAttribLdvEXT(int index,
int pname,
long params) |
static void |
nglVertexAttribL1dvEXT(int index,
long v) |
static void |
nglVertexAttribL2dvEXT(int index,
long v) |
static void |
nglVertexAttribL3dvEXT(int index,
long v) |
static void |
nglVertexAttribL4dvEXT(int index,
long v) |
static void |
nglVertexAttribLPointerEXT(int index,
int size,
int type,
int stride,
long pointer) |
public static final int GL_DOUBLE_VEC2_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_VEC3_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_VEC4_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT2_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT3_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT4_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT2x3_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT2x4_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT3x2_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT3x4_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT4x2_EXT
type parameter of GetActiveAttrib.public static final int GL_DOUBLE_MAT4x3_EXT
type parameter of GetActiveAttrib.public static void glVertexAttribL1dEXT(int index,
double x)
public static void glVertexAttribL2dEXT(int index,
double x,
double y)
public static void glVertexAttribL3dEXT(int index,
double x,
double y,
double z)
public static void glVertexAttribL4dEXT(int index,
double x,
double y,
double z,
double w)
public static void nglVertexAttribL1dvEXT(int index,
long v)
public static void glVertexAttribL1dvEXT(int index,
java.nio.DoubleBuffer v)
public static void nglVertexAttribL2dvEXT(int index,
long v)
public static void glVertexAttribL2dvEXT(int index,
java.nio.DoubleBuffer v)
public static void nglVertexAttribL3dvEXT(int index,
long v)
public static void glVertexAttribL3dvEXT(int index,
java.nio.DoubleBuffer v)
public static void nglVertexAttribL4dvEXT(int index,
long v)
public static void glVertexAttribL4dvEXT(int index,
java.nio.DoubleBuffer v)
public static void nglVertexAttribLPointerEXT(int index,
int size,
int type,
int stride,
long pointer)
public static void glVertexAttribLPointerEXT(int index,
int size,
int type,
int stride,
java.nio.ByteBuffer pointer)
public static void glVertexAttribLPointerEXT(int index,
int size,
int type,
int stride,
long pointer)
public static void glVertexAttribLPointerEXT(int index,
int size,
int stride,
java.nio.DoubleBuffer pointer)
public static void nglGetVertexAttribLdvEXT(int index,
int pname,
long params)
public static void glGetVertexAttribLdvEXT(int index,
int pname,
java.nio.DoubleBuffer params)
public static void glVertexArrayVertexAttribLOffsetEXT(int vaobj,
int buffer,
int index,
int size,
int type,
int stride,
long offset)
VertexAttribLPointer.vaobj - the vertex array objectbuffer - the buffer objectindex - the index of the generic vertex attribute to be modifiedsize - the number of values per vertex that are stored in the array. The initial value is 4. One of:| 1 | 2 | 3 | 4 | BGRA |
type - the data type of each component in the array. Must be:DOUBLE |
stride - the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in
the array. The initial value is 0.offset - the offset of the first component of the first generic vertex attribute in the array in the data store of the buffer. The initial value is 0.public static void glVertexAttribL1dvEXT(int index,
double[] v)
VertexAttribL1dvEXTpublic static void glVertexAttribL2dvEXT(int index,
double[] v)
VertexAttribL2dvEXTpublic static void glVertexAttribL3dvEXT(int index,
double[] v)
VertexAttribL3dvEXTpublic static void glVertexAttribL4dvEXT(int index,
double[] v)
VertexAttribL4dvEXTpublic static void glGetVertexAttribLdvEXT(int index,
int pname,
double[] params)
GetVertexAttribLdvEXTCopyright LWJGL. All Rights Reserved. License terms.