Sergio0694 / ComputeSharp

A .NET library to run C# code in parallel on the GPU through DX12, D2D1, and dynamically generated HLSL compute and pixel shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀
MIT License
2.75k stars 123 forks source link

Add D2D1CompileOptions.StripReflectionData flag #707

Closed Sergio0694 closed 11 months ago

Sergio0694 commented 11 months ago

Description

This PR adds the new D2D1CompileOptions.StripReflectionData to the D2D backend (both generator and runtime support). It also adds a bunch more tests both for D2D1ShaderCompiler and for the generated HLSL bytecode, to verify that both the linking and the strip reflection data options are applied correctly. Previously, there was no test to validate that the D2D1CompileOptions.EnableLinking flag was actually being respected by the D2D generator.