Invalid HLSL generated for bwd_diff function #5776
Labels
goal:client support
Feature or fix needed for a current slang user.
kind:bug
something doesn't work like it should
Milestone
I'm running into an issue where slang will generate invalid HLSL for the following snippet:
It seems to generate two identical specializations for WrappedBuffer (
WrappedBuffer_0
andWrappedBuffer_1
), and calls the get method ofWrappedBuffer_1
with an instance ofWrappedBuffer_0
. This only happens for the backwards pass and is very finicky; e.g. removingint[D] shape;
or changing T fromfloat[1]
tofloat
makes it go away.The text was updated successfully, but these errors were encountered: