mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Add new #soa and #vector syntax
This commit is contained in:
@@ -1674,7 +1674,7 @@ soa_struct_layout :: proc() {
|
||||
fmt.println(v_aos[1]);
|
||||
fmt.println(v_aos);
|
||||
|
||||
v_soa: intrinsics.soa_struct(N, Vector3);
|
||||
v_soa: #soa[N]Vector3;
|
||||
|
||||
v_soa[0].x = 1;
|
||||
v_soa[0].y = 4;
|
||||
@@ -1713,7 +1713,7 @@ soa_struct_layout :: proc() {
|
||||
v_aos[0].y = 4;
|
||||
v_aos[0].z = 9;
|
||||
|
||||
v_soa: intrinsics.soa_struct(N, Vector3);
|
||||
v_soa: #soa[N]Vector3;
|
||||
|
||||
v_soa[0].x = 1;
|
||||
v_soa[0].y = 4;
|
||||
|
||||
Reference in New Issue
Block a user