Browse Source

Updated nuget packages, fixed typos

Vicente Penades 5 years ago
parent
commit
67dc466c58

+ 1 - 1
src/Analyzers.props

@@ -10,7 +10,7 @@
   </ItemGroup>
   </ItemGroup>
 
 
   <ItemGroup>
   <ItemGroup>
-    <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.1">
+    <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3">
       <PrivateAssets>all</PrivateAssets>
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
     </PackageReference>
     </PackageReference>

+ 13 - 13
src/SharpGLTF.Core/Memory/MemoryImage.cs

@@ -440,15 +440,15 @@ namespace SharpGLTF.Memory
         public readonly UInt64 Header0;
         public readonly UInt64 Header0;
         public readonly UInt32 Header1;
         public readonly UInt32 Header1;
 
 
-        public readonly UInt32 vkFormat;
-        public readonly UInt32 typeSize;
-        public readonly UInt32 pixelWidth;
-        public readonly UInt32 pixelHeight;
-        public readonly UInt32 pixelDepth;
-        public readonly UInt32 layerCount;
-        public readonly UInt32 faceCount;
-        public readonly UInt32 levelCount;
-        public readonly UInt32 supercompressionScheme;
+        public readonly UInt32 VkFormat;
+        public readonly UInt32 TypeSize;
+        public readonly UInt32 PixelWidth;
+        public readonly UInt32 PixelHeight;
+        public readonly UInt32 PixelDepth;
+        public readonly UInt32 LayerCount;
+        public readonly UInt32 FaceCount;
+        public readonly UInt32 LevelCount;
+        public readonly UInt32 SupercompressionScheme;
 
 
         public static bool TryGetHeader(IReadOnlyList<Byte> data, out Ktx2Header header)
         public static bool TryGetHeader(IReadOnlyList<Byte> data, out Ktx2Header header)
         {
         {
@@ -477,13 +477,13 @@ namespace SharpGLTF.Memory
             Guard.IsTrue(header.IsValidHeader, paramName + ".Header");
             Guard.IsTrue(header.IsValidHeader, paramName + ".Header");
 
 
             // pixelWidth and pixelHeight MUST be multiples of 4.
             // pixelWidth and pixelHeight MUST be multiples of 4.
-            Guard.MustBePositiveAndMultipleOf((int)header.pixelWidth, 4, $"{paramName}.{nameof(pixelWidth)}");
-            Guard.MustBePositiveAndMultipleOf((int)header.pixelHeight, 4, $"{paramName}.{nameof(pixelHeight)}");
+            Guard.MustBePositiveAndMultipleOf((int)header.PixelWidth, 4, $"{paramName}.{nameof(PixelWidth)}");
+            Guard.MustBePositiveAndMultipleOf((int)header.PixelHeight, 4, $"{paramName}.{nameof(PixelHeight)}");
 
 
             // For 2D and cubemap textures, pixelDepth must be 0.
             // For 2D and cubemap textures, pixelDepth must be 0.
-            Guard.MustBeEqualTo((int)header.pixelDepth, 0, $"{paramName}.{nameof(pixelDepth)}");
+            Guard.MustBeEqualTo((int)header.PixelDepth, 0, $"{paramName}.{nameof(PixelDepth)}");
 
 
-            Guard.MustBeLessThan((int)header.supercompressionScheme, 3, $"{paramName}.{nameof(supercompressionScheme)}");
+            Guard.MustBeLessThan((int)header.SupercompressionScheme, 3, $"{paramName}.{nameof(SupercompressionScheme)}");
 
 
             // TODO: more checks required
             // TODO: more checks required
         }
         }

+ 0 - 2
src/SharpGLTF.Core/Schema2/gltf.AnimationChannel.cs

@@ -154,6 +154,4 @@ namespace SharpGLTF.Schema2
 
 
         #endregion
         #endregion
     }
     }
-
-    
 }
 }

+ 0 - 1
src/SharpGLTF.Core/Schema2/gltf.Serialization.Read.cs

@@ -209,7 +209,6 @@ namespace SharpGLTF.Schema2
 
 
         internal void OnDeserializationCompleted()
         internal void OnDeserializationCompleted()
         {
         {
-            
         }
         }
 
 
         internal void _ResolveSatelliteDependencies(IO.ReadContext context)
         internal void _ResolveSatelliteDependencies(IO.ReadContext context)

+ 1 - 1
tests/SharpGLTF.NUnit/SharpGLTF.NUnit.csproj

@@ -17,7 +17,7 @@
   </ItemGroup>
   </ItemGroup>
 
 
   <ItemGroup>
   <ItemGroup>
-    <PackageReference Include="nunit" Version="3.12.0" />
+    <PackageReference Include="nunit" Version="3.13.0" />
     <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
     <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
   </ItemGroup>
   </ItemGroup>