pub trait ES_GL_3_1 {
Show 69 methods
// Required methods
fn glGetError(&self) -> GLenum;
fn glDispatchCompute(
&self,
num_groups_x: GLuint,
num_groups_y: GLuint,
num_groups_z: GLuint,
) -> Result<(), GLCoreError>;
fn glDispatchComputeIndirect(
&self,
indirect: GLintptr,
) -> Result<(), GLCoreError>;
fn glDrawArraysIndirect(
&self,
mode: GLenum,
indirect: *const c_void,
) -> Result<(), GLCoreError>;
fn glDrawElementsIndirect(
&self,
mode: GLenum,
type_: GLenum,
indirect: *const c_void,
) -> Result<(), GLCoreError>;
fn glFramebufferParameteri(
&self,
target: GLenum,
pname: GLenum,
param: GLint,
) -> Result<(), GLCoreError>;
fn glGetFramebufferParameteriv(
&self,
target: GLenum,
pname: GLenum,
params: *mut GLint,
) -> Result<(), GLCoreError>;
fn glGetProgramInterfaceiv(
&self,
program: GLuint,
programInterface: GLenum,
pname: GLenum,
params: *mut GLint,
) -> Result<(), GLCoreError>;
fn glGetProgramResourceIndex(
&self,
program: GLuint,
programInterface: GLenum,
name: *const GLchar,
) -> Result<GLuint, GLCoreError>;
fn glGetProgramResourceName(
&self,
program: GLuint,
programInterface: GLenum,
index: GLuint,
bufSize: GLsizei,
length: *mut GLsizei,
name: *mut GLchar,
) -> Result<(), GLCoreError>;
fn glGetProgramResourceiv(
&self,
program: GLuint,
programInterface: GLenum,
index: GLuint,
propCount: GLsizei,
props: *const GLenum,
bufSize: GLsizei,
length: *mut GLsizei,
params: *mut GLint,
) -> Result<(), GLCoreError>;
fn glGetProgramResourceLocation(
&self,
program: GLuint,
programInterface: GLenum,
name: *const GLchar,
) -> Result<GLint, GLCoreError>;
fn glUseProgramStages(
&self,
pipeline: GLuint,
stages: GLbitfield,
program: GLuint,
) -> Result<(), GLCoreError>;
fn glActiveShaderProgram(
&self,
pipeline: GLuint,
program: GLuint,
) -> Result<(), GLCoreError>;
fn glCreateShaderProgramv(
&self,
type_: GLenum,
count: GLsizei,
strings: *const *const GLchar,
) -> Result<GLuint, GLCoreError>;
fn glBindProgramPipeline(&self, pipeline: GLuint) -> Result<(), GLCoreError>;
fn glDeleteProgramPipelines(
&self,
n: GLsizei,
pipelines: *const GLuint,
) -> Result<(), GLCoreError>;
fn glGenProgramPipelines(
&self,
n: GLsizei,
pipelines: *mut GLuint,
) -> Result<(), GLCoreError>;
fn glIsProgramPipeline(
&self,
pipeline: GLuint,
) -> Result<GLboolean, GLCoreError>;
fn glGetProgramPipelineiv(
&self,
pipeline: GLuint,
pname: GLenum,
params: *mut GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
v1: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
v1: GLint,
v2: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
v1: GLint,
v2: GLint,
v3: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
v1: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
v1: GLuint,
v2: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
v1: GLuint,
v2: GLuint,
v3: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform2f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
v1: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform3f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
v1: GLfloat,
v2: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform4f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
v1: GLfloat,
v2: GLfloat,
v3: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform1iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2x3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3x2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2x4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4x2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3x4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4x3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glValidateProgramPipeline(
&self,
pipeline: GLuint,
) -> Result<(), GLCoreError>;
fn glGetProgramPipelineInfoLog(
&self,
pipeline: GLuint,
bufSize: GLsizei,
length: *mut GLsizei,
infoLog: *mut GLchar,
) -> Result<(), GLCoreError>;
fn glBindImageTexture(
&self,
unit: GLuint,
texture: GLuint,
level: GLint,
layered: GLboolean,
layer: GLint,
access: GLenum,
format: GLenum,
) -> Result<(), GLCoreError>;
fn glGetBooleani_v(
&self,
target: GLenum,
index: GLuint,
data: *mut GLboolean,
) -> Result<(), GLCoreError>;
fn glMemoryBarrier(&self, barriers: GLbitfield) -> Result<(), GLCoreError>;
fn glMemoryBarrierByRegion(
&self,
barriers: GLbitfield,
) -> Result<(), GLCoreError>;
fn glTexStorage2DMultisample(
&self,
target: GLenum,
samples: GLsizei,
internalformat: GLenum,
width: GLsizei,
height: GLsizei,
fixedsamplelocations: GLboolean,
) -> Result<(), GLCoreError>;
fn glGetMultisamplefv(
&self,
pname: GLenum,
index: GLuint,
val: *mut GLfloat,
) -> Result<(), GLCoreError>;
fn glSampleMaski(
&self,
maskNumber: GLuint,
mask: GLbitfield,
) -> Result<(), GLCoreError>;
fn glGetTexLevelParameteriv(
&self,
target: GLenum,
level: GLint,
pname: GLenum,
params: *mut GLint,
) -> Result<(), GLCoreError>;
fn glGetTexLevelParameterfv(
&self,
target: GLenum,
level: GLint,
pname: GLenum,
params: *mut GLfloat,
) -> Result<(), GLCoreError>;
fn glBindVertexBuffer(
&self,
bindingindex: GLuint,
buffer: GLuint,
offset: GLintptr,
stride: GLsizei,
) -> Result<(), GLCoreError>;
fn glVertexAttribFormat(
&self,
attribindex: GLuint,
size: GLint,
type_: GLenum,
normalized: GLboolean,
relativeoffset: GLuint,
) -> Result<(), GLCoreError>;
fn glVertexAttribIFormat(
&self,
attribindex: GLuint,
size: GLint,
type_: GLenum,
relativeoffset: GLuint,
) -> Result<(), GLCoreError>;
fn glVertexAttribBinding(
&self,
attribindex: GLuint,
bindingindex: GLuint,
) -> Result<(), GLCoreError>;
fn glVertexBindingDivisor(
&self,
bindingindex: GLuint,
divisor: GLuint,
) -> Result<(), GLCoreError>;
}
Expand description
Functions from OpenGL ES version 3.1