Hm this is weird.
Does this happen with all of your 3 handle types or only one (if yes, which one) of them?
Maybe try something like
Code:
printf("%d: %x %s\n", i, SPVTypeNames[i], SPVTypeNames[i]);
typebuffer[i].type = handlesys->CreateType(...);
printf("%d: %x %s\n", i, SPVTypeNames[i], SPVTypeNames[i]);
printf("Result: %d\n\n", typebuffer[i].type);
(replace printf with some other printing/logging mechanism that you can see)
That way you can see:
- what exactly was passed into CreateType (address of name and string value stored on that address)
- if something modifies the values in the process
As far as the code SM goes, I don't see any reason why it would do this
__________________