shader-slang / slang

Making it easier to work with shaders
MIT License
1.99k stars 169 forks source link

Translate all metal entry point legalization logic into `EntryPointVaryingParamLegalizeContext` #4657

Open ArielG-NV opened 2 months ago

ArielG-NV commented 2 months ago

Problem: Currently Metal has its own unique entry-point legalization logic (LegalizeMetalEntryPointContext). This should be refactored such that LegalizeMetalEntryPointContext runs using the EntryPointVaryingParamLegalizeContext entry-point legalization logic so we: 1. reduce code-reuse 2. CUDA/CPP benefit from all Metal improvements. This will require significant changes to EntryPointVaryingParamLegalizeContext.