Home | Info | Community | Development | myReactOS | Contact Us
As above, but allow float/int casting.
Definition at line 373 of file slang_typeinfo.c.
Referenced by _slang_function_locate(), and slang_type_specifier_compatible().
{ /* special case: float == int */ if (x->type == SLANG_SPEC_INT && y->type == SLANG_SPEC_FLOAT) { return GL_TRUE; } /* XXX may need to add bool/int compatibility, etc */ if (x->type != y->type) return GL_FALSE; if (x->type == SLANG_SPEC_STRUCT) return slang_struct_equal(x->_struct, y->_struct); if (x->type == SLANG_SPEC_ARRAY) return slang_type_specifier_compatible(x->_array, y->_array); return GL_TRUE; }