Deprecate properties. Use hinted cbuffers instead. This opens up to use a structured buffer in that way as well if you want instead.

This commit is contained in:
2025-09-17 12:31:37 +02:00
parent 7fefe0ecf6
commit 607a6a0bed
27 changed files with 518 additions and 629 deletions

14
Ink.jai
View File

@@ -228,12 +228,22 @@ run_compile_test :: (path : string, output_type : Output_Type = 0) -> Result, Co
}
for cb : ctx.cbuffers {
print_to_builder(*sb, "[constant_buffer] - % - %\n", cb.name, cb.buffer_index);
print_to_builder(*sb, "[constant_buffer] - % - %", cb.name, cb.buffer_index);
if cb.hints.count > 0 {
for hint : cb.hints {
print_to_builder(*sb, " (@%)", hint.custom_hint_name);
}
}
append(*sb, "\n");
indent(*sb, 1);
for field : cb.fields {
append(*sb, "[field] - ");
pretty_print_field(*sb, *field.base_field);
pretty_print_field(*sb, *field);
append(*sb, "\n");
indent(*sb, 1);
}
}