Browse Source

Typos fix (#19257)

* vertext -> vertex

* Eqaul -> Equal
oktrue 2 months ago
parent
commit
83eded1c83

+ 5 - 5
samples/GpuInterop/VulkanDemo/VulkanContent.cs

@@ -142,7 +142,7 @@ unsafe class VulkanContent : IDisposable
         
         
         var model = Matrix4x4.CreateFromYawPitchRoll((float)yaw, (float)pitch, (float)roll);
         var model = Matrix4x4.CreateFromYawPitchRoll((float)yaw, (float)pitch, (float)roll);
 
 
-        var vertexConstant = new VertextPushConstant()
+        var vertexConstant = new VertexPushConstant()
         {
         {
             Disco = (float)disco,
             Disco = (float)disco,
             MinY = _minY,
             MinY = _minY,
@@ -206,7 +206,7 @@ unsafe class VulkanContent : IDisposable
             _pipelineLayout,0,1, &dset, null);
             _pipelineLayout,0,1, &dset, null);
 
 
         api.CmdPushConstants(commandBufferHandle, _pipelineLayout, ShaderStageFlags.VertexBit | ShaderStageFlags.FragmentBit, 0,
         api.CmdPushConstants(commandBufferHandle, _pipelineLayout, ShaderStageFlags.VertexBit | ShaderStageFlags.FragmentBit, 0,
-            (uint)Marshal.SizeOf<VertextPushConstant>(), &vertexConstant);
+            (uint)Marshal.SizeOf<VertexPushConstant>(), &vertexConstant);
         api.CmdBindVertexBuffers(commandBufferHandle, 0, 1, _vertexBuffer, 0);
         api.CmdBindVertexBuffers(commandBufferHandle, 0, 1, _vertexBuffer, 0);
         api.CmdBindIndexBuffer(commandBufferHandle, _indexBuffer, 0, IndexType.Uint16);
         api.CmdBindIndexBuffer(commandBufferHandle, _indexBuffer, 0, IndexType.Uint16);
 
 
@@ -613,14 +613,14 @@ unsafe class VulkanContent : IDisposable
                 var vertexPushConstantRange = new PushConstantRange()
                 var vertexPushConstantRange = new PushConstantRange()
                 {
                 {
                     Offset = 0,
                     Offset = 0,
-                    Size = (uint)Marshal.SizeOf<VertextPushConstant>(),
+                    Size = (uint)Marshal.SizeOf<VertexPushConstant>(),
                     StageFlags = ShaderStageFlags.VertexBit
                     StageFlags = ShaderStageFlags.VertexBit
                 };
                 };
 
 
                 var fragPushConstantRange = new PushConstantRange()
                 var fragPushConstantRange = new PushConstantRange()
                 {
                 {
                     //Offset = vertexPushConstantRange.Size,
                     //Offset = vertexPushConstantRange.Size,
-                    Size = (uint)Marshal.SizeOf<VertextPushConstant>(),
+                    Size = (uint)Marshal.SizeOf<VertexPushConstant>(),
                     StageFlags = ShaderStageFlags.FragmentBit
                     StageFlags = ShaderStageFlags.FragmentBit
                 };
                 };
 
 
@@ -809,7 +809,7 @@ unsafe class VulkanContent : IDisposable
     private DescriptorSet _descriptorSet;
     private DescriptorSet _descriptorSet;
 
 
     [StructLayout(LayoutKind.Sequential, Pack = 4)]
     [StructLayout(LayoutKind.Sequential, Pack = 4)]
-    private struct VertextPushConstant
+    private struct VertexPushConstant
     {
     {
         public float MaxY;
         public float MaxY;
         public float MinY;
         public float MinY;

+ 0 - 0
tests/Avalonia.Base.UnitTests/Data/ObjectConvertersTests_Eqaul.cs → tests/Avalonia.Base.UnitTests/Data/ObjectConvertersTests_Equal.cs


+ 0 - 0
tests/Avalonia.Base.UnitTests/Data/ObjectConvertersTests_NotEqaul.cs → tests/Avalonia.Base.UnitTests/Data/ObjectConvertersTests_NotEqual.cs