Browse Source

Add bgra8 TextureFormat;

bjorn 5 months ago
parent
commit
4912f123a4
2 changed files with 8 additions and 0 deletions
  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",
               name = "rgba8",
               description = "Four 8-bit channels.  4 bytes per pixel."
               description = "Four 8-bit channels.  4 bytes per pixel."
             },
             },
+            {
+              name = "bgra8",
+              description = "Four 8-bit channels.  4 bytes per pixel."
+            },
             {
             {
               name = "r16",
               name = "r16",
               description = "One 16-bit channel.  2 bytes per pixel."
               description = "One 16-bit channel.  2 bytes per pixel."

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

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