| 209 | return ret; |
| 210 | } |
| 211 | bv_variable create_uint2(bv_program* prog, glm::uvec2 val) |
| 212 | { |
| 213 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "uvec2" : "uint2")); |
| 214 | bv_object* retObj = bv_variable_get_object(ret); |
| 215 | |
| 216 | bv_object_set_property(retObj, "x", bv_variable_create_uint(val.x)); |
| 217 | bv_object_set_property(retObj, "y", bv_variable_create_uint(val.y)); |
| 218 | |
| 219 | return ret; |
| 220 | } |
| 221 | bv_variable create_bool2(bv_program* prog, glm::bvec2 val) |
| 222 | { |
| 223 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "bvec2" : "bool2")); |
no test coverage detected