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:
Samuel Pitoiset
2017-06-26 15:35:10 +02:00
parent edd5082861
commit 401fa69132
3 changed files with 19 additions and 1 deletions
@@ -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" />
+12
View File
@@ -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,
+6
View File
@@ -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,