You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Odd compiliation error with ResourceDescriptorHeap and type deduction #4036
D:\local\Temp\178b99bf-6e48-4e9f-88b4-102b65301c33.hlsl:8:79: error: no member named 'Load' in 'StructuredBuffer<float>'
return ((StructuredBuffer<float>)ResourceDescriptorHeap[int(input.color.x)]).Load(0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
Somehow the right type is deduced, but we can't call it's functions?
changed the title [-][hlsl 2021] Odd compiliation error[/-][+][hlsl 2021] Odd compiliation error with ResourceDescriptorHeap and type deduction[/+]on Oct 25, 2021
changed the title [-][hlsl 2021] Odd compiliation error with ResourceDescriptorHeap and type deduction[/-][+]Odd compiliation error with ResourceDescriptorHeap and type deduction[/+]on Nov 8, 2021
Thanks for the report. The expected usage of this is to assign to a local variable. However, we agree that this usage should be supported. Given that there's a workaround and the compiler can be expected to optimize any extra copies away, it won't be a priority
Activity
[-][hlsl 2021] Odd compiliation error[/-][+][hlsl 2021] Odd compiliation error with ResourceDescriptorHeap and type deduction[/+][-][hlsl 2021] Odd compiliation error with ResourceDescriptorHeap and type deduction[/-][+]Odd compiliation error with ResourceDescriptorHeap and type deduction[/+]pow2clk commentedon Nov 8, 2021
Hi Jasper Bekkers (@Jasper-Bekkers)
Thanks for the report. The expected usage of this is to assign to a local variable. However, we agree that this usage should be supported. Given that there's a workaround and the compiler can be expected to optimize any extra copies away, it won't be a priority