Calling methods on large structs may lead to numerous copies #4037
Labels
goal:client support
Feature or fix needed for a current slang user.
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
Milestone
Repro:
The generated SPIRV contains numerous
OpCompositeExtract
instructions followed by aOpCompositeConstruct
, which I'd hope to be redundant. Enabling optimizations makes them go away but I think only because of inlining, so I would prefer not to rely on it.This is not specific to ConstantBuffer and also happens with pointers.
The text was updated successfully, but these errors were encountered: