From 63e1a23ac571e43d932d266f13ebfecb3020f632 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 24 Feb 2021 19:09:35 +0100 Subject: [PATCH] Fixed some build errors after refactoring with T4 --- src/ComputeSharp.Core/Primitives/Int/Int3.cs | 2 -- .../ComputeSharp.SourceGenerators.csproj | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.cs index 52d2f12b..d8011590 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -8,7 +7,6 @@ namespace ComputeSharp /// A that maps the HLSL type. /// [DebuggerDisplay("({X}, {Y}, {Z})")] - [StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 3)] public partial struct Int3 { /// diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj index b968ac10..34a203b9 100644 --- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj +++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj @@ -32,18 +32,33 @@ + + + + + + + + + + + + + + +