diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 579c65bc..c3545c64 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -86,6 +86,7 @@ Global src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{514ff00e-bbf0-4d55-a47c-eeeb6208adce}*SharedItemsImports = 13 samples\ComputeSharp.Sample.Shared\ComputeSharp.Sample.Shared.projitems*{7048deea-0a6f-46a0-b951-b682a8f1cb75}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Core.Shared\ComputeSharp.SwapChain.Core.Shared.projitems*{751bb05b-563d-4b3a-94c6-15e2d79d35ea}*SharedItemsImports = 13 + src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{76c66257-fdaa-47ab-85e7-ef757eab10c0}*SharedItemsImports = 5 samples\ComputeSharp.Sample.Shared\ComputeSharp.Sample.Shared.projitems*{8cefc324-ca6c-4845-9ad9-70b92bd87057}*SharedItemsImports = 13 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{a5997814-d8d2-4541-87ac-c3e53caa67c0}*SharedItemsImports = 13 src\ComputeSharp.UI\ComputeSharp.UI.projitems*{afaafdc9-be42-45d4-8c79-0ee8c8edbf52}*SharedItemsImports = 5 diff --git a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj index d0b11a00..ec15565d 100644 --- a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj +++ b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj @@ -7,6 +7,16 @@ AnyCPU;x64;ARM64 + + + + + + + + - + - + @@ -234,4 +230,8 @@ UIntMxN.g.cs + + + + diff --git a/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs b/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs index 40989e59..dc4495b0 100644 --- a/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs +++ b/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs @@ -64,6 +64,24 @@ public interface IShader ; #endif + /// + /// Builds the HLSL source code for the current shader instance. + /// + /// The resulting instance containing the HLSL source. + /// The number of threads in each thread group for the X axis. + /// The number of threads in each thread group for the Y axis. + /// The number of threads in each thread group for the Z axis. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is not intended to be called directly by user code")] + void BuildHlslString(out ArrayPoolStringBuilder builder, int threadsX, int threadsY, int threadsZ) +#if NET6_0_OR_GREATER + { + throw new NotImplementedException(); + } +#else + ; +#endif + /// /// Loads the bytecode for the current shader. /// diff --git a/src/ComputeSharp.Dynamic/Shaders/Translation/__Internals/ArrayPoolStringBuilder.cs b/src/ComputeSharp/Shaders/Dispatching/__Internals/ArrayPoolStringBuilder.cs similarity index 100% rename from src/ComputeSharp.Dynamic/Shaders/Translation/__Internals/ArrayPoolStringBuilder.cs rename to src/ComputeSharp/Shaders/Dispatching/__Internals/ArrayPoolStringBuilder.cs diff --git a/src/TerraFX.Interop.Windows.Dynamic/DirectX.cs b/src/TerraFX.Interop.Windows.Dynamic/DirectX.cs index 0963b55b..a408b343 100644 --- a/src/TerraFX.Interop.Windows.Dynamic/DirectX.cs +++ b/src/TerraFX.Interop.Windows.Dynamic/DirectX.cs @@ -9,7 +9,8 @@ using TerraFX.Interop.Windows; namespace TerraFX.Interop.DirectX { - internal static unsafe partial class DirectX + // This type is named DirectX2 to avoid naming conflicts in ComputeSharp.Dynamic + internal static unsafe partial class DirectX2 { [DllImport("dxcompiler", ExactSpelling = true)] public static extern HRESULT DxcCreateInstance([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppv);