Cleanup: move trailing comments to avoid wrapping code
Some statements were split across multiple lines because of their trailing comments. In most cases it's clearer to put the comments above.
This commit is contained in:
@@ -163,8 +163,10 @@ uint GPU_vertformat_attr_add(GPUVertFormat *format,
|
||||
/* 10_10_10 format intended for normals (xyz) or colors (rgb)
|
||||
* extra component packed.w can be manually set to { -2, -1, 0, 1 } */
|
||||
assert(comp_len == 3 || comp_len == 4);
|
||||
assert(fetch_mode ==
|
||||
GPU_FETCH_INT_TO_FLOAT_UNIT); /* not strictly required, may relax later */
|
||||
|
||||
/* Not strictly required, may relax later. */
|
||||
assert(fetch_mode == GPU_FETCH_INT_TO_FLOAT_UNIT);
|
||||
|
||||
break;
|
||||
default:
|
||||
/* integer types can be kept as int or converted/normalized to float */
|
||||
|
||||
Reference in New Issue
Block a user