cbuffer A {
float a; float b;
}
will be translated to a global variable.
Something like
struct CB_Ty {
float a; float b;
};
CB_Ty A;
And all use of a and b will be replaced with A.a and A.b.
Only support none-legacy cbuffer layout now.
CodeGen for Resource binding will be in separate patch.
In the separate patch, resource binding will map the resource information to the global variable.
I don’t think you need this comment. Most of those adds space values aren’t applicable to these targets, that’s why they are all 0.