| 152 | return ret; |
| 153 | } |
| 154 | bv_variable create_int4(bv_program* prog, glm::ivec4 val) |
| 155 | { |
| 156 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "ivec4" : "int4")); |
| 157 | bv_object* retObj = bv_variable_get_object(ret); |
| 158 | |
| 159 | bv_object_set_property(retObj, "x", bv_variable_create_int(val.x)); |
| 160 | bv_object_set_property(retObj, "y", bv_variable_create_int(val.y)); |
| 161 | bv_object_set_property(retObj, "z", bv_variable_create_int(val.z)); |
| 162 | bv_object_set_property(retObj, "w", bv_variable_create_int(val.w)); |
| 163 | |
| 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")); |
no test coverage detected