This is optionally enabled when C# preview is used
Also rename D2D1 to D2D for consistency with HLSL, and tweak namespaces