Fix some if directive stuff. Fix a property output issue. Will be deprecated next commit anyway.

This commit is contained in:
2025-09-17 12:30:36 +02:00
parent 7fefe0ecf6
commit 8b2141df16
19 changed files with 174 additions and 95 deletions

16
Ink.jai
View File

@@ -226,6 +226,22 @@ run_compile_test :: (path : string, output_type : Output_Type = 0) -> Result, Co
if ctx.pixel_entry_point.name.count > 0 {
print_to_builder(*sb, "[pixel entry point] - %\n", ctx.pixel_entry_point.name);
}
if ctx.properties.fields.count > 0{
props := ctx.properties;
append(*sb, "[");
if ctx.property_name.count > 0 {
print_to_builder(*sb, "% :: ", ctx.property_name);
}
print_to_builder(*sb, "properties] - %\n", props.buffer_index);
indent(*sb, 1);
for field : props.fields {
append(*sb, "[field] - ");
pretty_print_field(*sb, *field.base_field);
}
}
for cb : ctx.cbuffers {
print_to_builder(*sb, "[constant_buffer] - % - %\n", cb.name, cb.buffer_index);