Added comment and todo on resource index in type var.

This commit is contained in:
2025-09-18 11:02:35 +00:00
parent 3fdaebf66d
commit 4c84437022

View File

@@ -7,6 +7,7 @@
//
// [ ] Add and error for using keywords as names, or rename the dx11 keywords in the resulting hlsl shader.
// [ ] Add missing scope in for loop for loop iterator
// [ ] Maybe we remove the resource index on type variables, seems like we don't need it there.
// [x] Improve error reporting on mismatched overloads when types don't match, but arity does.
// [x] Improve error reporting for type mismatches in general. It seems like the expect node is not always correct.
@@ -82,6 +83,10 @@ Type_Variable :: struct {
MAX_TYPE_VARIABLE_CHILDREN :: 32;
children : Static_Array(Type_Variable_Handle, MAX_TYPE_VARIABLE_CHILDREN);
//@Incomplete: Should we remove this and do it in the output generation instead?
// Seems kind of superfluous considering we auto-generate it.
// Otherwise if we want to specify it, it should be specified as a hint @binding(index)
// In the case of using hints, we can just have it on the AST node.
//@Note(niels): For constant buffers
resource_index : u32;