Commit dd1a50e
committed
Add empty constructors to structs with resource fields
This change adds empty __init() {} constructors to DirectPathTextures and
IndirectPathTextures structs to fix compilation errors with recent versions
of the Slang shader compiler.
Slang versions (2025.23+) introduced stricter validation (error 41024)
that prevents default-initialization of structs containing resource types.
Changes:
- Added __init() {} to DirectPathTextures struct
- Added __init() {} to IndirectPathTextures struct
The empty constructors allow these structs to be instantiated without attempting
to default-initialize their resource fields. The existing code pattern of declaring
the struct and then assigning individual fields continues to work correctly.1 parent ca6bd3e commit dd1a50e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| 517 | + | |
| 518 | + | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
| |||
528 | 530 | | |
529 | 531 | | |
530 | 532 | | |
| 533 | + | |
| 534 | + | |
531 | 535 | | |
532 | 536 | | |
533 | 537 | | |
0 commit comments