| 106 | return ret; |
| 107 | } |
| 108 | bv_variable create_int3(bv_program* prog, glm::ivec3 val) |
| 109 | { |
| 110 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "ivec3" : "int3")); |
| 111 | bv_object* retObj = bv_variable_get_object(ret); |
| 112 | |
| 113 | bv_object_set_property(retObj, "x", bv_variable_create_int(val.x)); |
| 114 | bv_object_set_property(retObj, "y", bv_variable_create_int(val.y)); |
| 115 | bv_object_set_property(retObj, "z", bv_variable_create_int(val.z)); |
| 116 | |
| 117 | return ret; |
| 118 | } |
| 119 | bv_variable create_uint3(bv_program* prog, glm::uvec3 val) |
| 120 | { |
| 121 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "uvec3" : "uint3")); |
no test coverage detected