浏览代码

Add bgra8 TextureFormat;

bjorn 5 月之前
父节点
当前提交
4912f123a4
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      api/init.lua
  2. 4 0
      api/lovr/data/TextureFormat.lua

+ 4 - 0
api/init.lua

@@ -3389,6 +3389,10 @@ return {
               name = "rgba8",
               description = "Four 8-bit channels.  4 bytes per pixel."
             },
+            {
+              name = "bgra8",
+              description = "Four 8-bit channels.  4 bytes per pixel."
+            },
             {
               name = "r16",
               description = "One 16-bit channel.  2 bytes per pixel."

+ 4 - 0
api/lovr/data/TextureFormat.lua

@@ -26,6 +26,10 @@ return {
       name = 'rgba8',
       description = 'Four 8-bit channels.  4 bytes per pixel.'
     },
+    {
+      name = 'bgra8',
+      description = 'Four 8-bit channels.  4 bytes per pixel.'
+    },
     {
       name = 'r16',
       description = 'One 16-bit channel.  2 bytes per pixel.'