From 8cd7828792419fb4eac9a2a477968535b4c71535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 18 Jul 2018 00:12:21 +0200 Subject: GWN: Port to GPU module: Replace GWN prefix by GPU --- intern/opencolorio/ocio_impl_glsl.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'intern/opencolorio') diff --git a/intern/opencolorio/ocio_impl_glsl.cc b/intern/opencolorio/ocio_impl_glsl.cc index 10acdb9d281..78c73a6e3bf 100644 --- a/intern/opencolorio/ocio_impl_glsl.cc +++ b/intern/opencolorio/ocio_impl_glsl.cc @@ -98,7 +98,7 @@ typedef struct OCIO_GLSLShader { GLuint ocio_shader; GLuint vert_shader; GLuint program; - Gwn_ShaderInterface *shader_interface; + GPUShaderInterface *shader_interface; } GLSLDrawState; typedef struct OCIO_GLSLDrawState { @@ -251,7 +251,7 @@ static void freeGLSLShader(OCIO_GLSLShader *shader) } if (shader->shader_interface) { - GWN_shaderinterface_discard(shader->shader_interface); + GPU_shaderinterface_discard(shader->shader_interface); } if (shader->ocio_shader) { @@ -424,9 +424,9 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc if (shader->program) { if (shader->shader_interface) { - GWN_shaderinterface_discard(shader->shader_interface); + GPU_shaderinterface_discard(shader->shader_interface); } - shader->shader_interface = GWN_shaderinterface_create(shader->program); + shader->shader_interface = GPU_shaderinterface_create(shader->program); } } } @@ -461,9 +461,9 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc * * TODO(sergey): Look into some nicer solution. */ - Gwn_VertFormat *format = immVertexFormat(); - GWN_vertformat_attr_add(format, "pos", GWN_COMP_F32, 2, GWN_FETCH_FLOAT); - GWN_vertformat_attr_add(format, "texCoord", GWN_COMP_F32, 2, GWN_FETCH_FLOAT); + GPUVertFormat *format = immVertexFormat(); + GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); + GPU_vertformat_attr_add(format, "texCoord", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); immBindProgram(shader->program, shader->shader_interface); immUniform1i("image_texture", 0); -- cgit v1.2.3