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:
14
Ink.jai
14
Ink.jai
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user