From eda49137fabc3a736dac4e5aedd8b609a5981e08 Mon Sep 17 00:00:00 2001 From: s1ddok Date: Thu, 6 Jul 2017 02:11:07 +0300 Subject: [PATCH] bump enums to latest bgfx api --- Sources/SwiftBGFX/enums.swift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftBGFX/enums.swift b/Sources/SwiftBGFX/enums.swift index 9851cb8..9573028 100644 --- a/Sources/SwiftBGFX/enums.swift +++ b/Sources/SwiftBGFX/enums.swift @@ -58,6 +58,12 @@ public enum VertexAttributeUsage: UInt32 { /// Second color channel. case color1 + /// Third color channel. + case color2 + + /// Fourth color channel. + case color3 + /// Indices. case indices @@ -353,7 +359,10 @@ public enum TextureFormat: UInt32 { public enum UniformType : UInt32 { /// Single integer. - case int1 + case int1 = 0 + + /// + case end /// 4D vector. case vector4 = 2