#Incorrectly generated code when using a generic with SystemAPI.GetBufferTypeHandle

1 messages · Page 1 of 1 (latest)

manic canyon
#

If use SystemAPI.GetBufferTypeHandle on a generic that is constrained to IBufferElementData I can call the SystemAPI function fine in my code, but it incorrectly emits state.GetComponentTypeHandle in TypeHandle.__AssignHandles, which means the source generated file throws a compile error.

#

@crimson wyvern

crimson wyvern
#

@ornate tulip

manic canyon
#

Ah, my bad. I wasn't sure who was responsible for this 👍

crimson wyvern
#

yeah dani is the systemapi/codegen guy

#

i generally am more on the stuff his stuff calls into, ish

ornate tulip
#

Well, fudge, that's impractical, I found the faulty line.. don't currently have time, but if you ping me next week I'll make sure to fix it 😅

manic canyon
#

I'll try and remember to ping you though 😅

manic canyon
#

@ornate tulip here is the late ping 👍

#

There's also some other source generation issues I found with generics

#

If you request a type handle of a component with multiple generic arguments, this happens

#

Not exactly sure what happened here, but I'm guessing it's related