This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
[hlsl-out] Arrays in Structs Are Incorrectly Loaded When Loaded as A Whole Struct #2184
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: HLSL
High-Level Shading Language
Milestone
WGSL
HLSL
Solution
As far as I can tell, the only real solution is to make the array part of the initialization a temporary. I wish there was a way to initialize an array inline, but I don't think you can. I'm not entirely sure how to do it but this code is the code that needs to be assigned to a temporary.
naga/src/back/hlsl/storage.rs
Lines 145 to 156 in 2754a01
The text was updated successfully, but these errors were encountered: