Skip to content

Commit

Permalink
issue: VkBool32 noncompliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcant0n committed Jun 7, 2022
1 parent 4f98f16 commit d58fe3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions VulkanGen/Evergine.Bindings.Vulkan/VKBool32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public struct VkBool32 : IEquatable<VkBool32>
/// <param name="value"></param>
public VkBool32(uint value)
{
if (value != 0 && value != 1)
throw new System.InvalidOperationException("Invalid value for VkBool32");

Value = value;
}

Expand Down

0 comments on commit d58fe3d

Please sign in to comment.