fix: remove duplicate function defines in glslang_c_interface

This commit is contained in:
Kai Angulo 2024-10-24 01:51:30 -07:00
parent 515d0965b0
commit 0db4d1e2aa

View file

@ -553,33 +553,6 @@ GLSLANG_EXPORT void glslang_glsl_resolver_delete(glslang_resolver_t* resolver)
delete reinterpret_cast<glslang::TDefaultGlslIoResolver* >(resolver); delete reinterpret_cast<glslang::TDefaultGlslIoResolver* >(resolver);
} }
GLSLANG_EXPORT glslang_mapper_t* glslang_glsl_mapper_create()
{
return reinterpret_cast<glslang_mapper_t*>(new glslang::TGlslIoMapper());
}
GLSLANG_EXPORT void glslang_glsl_mapper_delete(glslang_mapper_t* mapper)
{
if (!mapper)
return;
delete reinterpret_cast<glslang::TGlslIoMapper* >(mapper);
}
GLSLANG_EXPORT glslang_resolver_t* glslang_glsl_resolver_create(glslang_program_t* program, glslang_stage_t stage)
{
glslang::TIntermediate* intermediate = program->program->getIntermediate(c_shader_stage(stage));
return reinterpret_cast<glslang_resolver_t*>(new glslang::TDefaultGlslIoResolver(reinterpret_cast<const glslang::TIntermediate&>(*intermediate)));
}
GLSLANG_EXPORT void glslang_glsl_resolver_delete(glslang_resolver_t* resolver)
{
if (!resolver)
return;
delete reinterpret_cast<glslang::TDefaultGlslIoResolver* >(resolver);
}
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif