mesa: add KHR_no_error support for glShaderStorageBlockBinding()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<!-- Duplicated with GL3x.xml: BindBufferRange, BindBufferBase,
|
||||
GetIntegeri_v -->
|
||||
|
||||
<function name="ShaderStorageBlockBinding">
|
||||
<function name="ShaderStorageBlockBinding" no_error="true">
|
||||
<param name="program" type="GLuint" />
|
||||
<param name="shaderStorageBlockIndex" type="GLuint" />
|
||||
<param name="shaderStorageBlockBinding" type="GLuint" />
|
||||
|
||||
@@ -1162,6 +1162,18 @@ shader_storage_block_binding(struct gl_context *ctx,
|
||||
}
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ShaderStorageBlockBinding_no_error(GLuint program,
|
||||
GLuint shaderStorageBlockIndex,
|
||||
GLuint shaderStorageBlockBinding)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, program);
|
||||
shader_storage_block_binding(ctx, shProg, shaderStorageBlockIndex,
|
||||
shaderStorageBlockBinding);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ShaderStorageBlockBinding(GLuint program,
|
||||
GLuint shaderStorageBlockIndex,
|
||||
|
||||
@@ -241,6 +241,12 @@ void GLAPIENTRY
|
||||
_mesa_UniformBlockBinding(GLuint program,
|
||||
GLuint uniformBlockIndex,
|
||||
GLuint uniformBlockBinding);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ShaderStorageBlockBinding_no_error(GLuint program,
|
||||
GLuint shaderStorageBlockIndex,
|
||||
GLuint shaderStorageBlockBinding);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ShaderStorageBlockBinding(GLuint program,
|
||||
GLuint shaderStorageBlockIndex,
|
||||
|
||||
Reference in New Issue
Block a user