| 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")); |
| 122 | bv_object* retObj = bv_variable_get_object(ret); |
| 123 | |
| 124 | bv_object_set_property(retObj, "x", bv_variable_create_uint(val.x)); |
| 125 | bv_object_set_property(retObj, "y", bv_variable_create_uint(val.y)); |
| 126 | bv_object_set_property(retObj, "z", bv_variable_create_uint(val.z)); |
| 127 | |
| 128 | return ret; |
| 129 | } |
| 130 | bv_variable create_bool3(bv_program* prog, glm::bvec3 val) |
| 131 | { |
| 132 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "bvec3" : "bool3")); |