| 164 | return ret; |
| 165 | } |
| 166 | bv_variable create_uint4(bv_program* prog, glm::uvec4 val) |
| 167 | { |
| 168 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "uvec4" : "uint4")); |
| 169 | bv_object* retObj = bv_variable_get_object(ret); |
| 170 | |
| 171 | bv_object_set_property(retObj, "x", bv_variable_create_uint(val.x)); |
| 172 | bv_object_set_property(retObj, "y", bv_variable_create_uint(val.y)); |
| 173 | bv_object_set_property(retObj, "z", bv_variable_create_uint(val.z)); |
| 174 | bv_object_set_property(retObj, "w", bv_variable_create_uint(val.w)); |
| 175 | |
| 176 | return ret; |
| 177 | } |
| 178 | bv_variable create_bool4(bv_program* prog, glm::bvec4 val) |
| 179 | { |
| 180 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "bvec4" : "bool4")); |
no test coverage detected