bjorn 5 years ago
parent
commit
da80b578c8
1 changed files with 25 additions and 0 deletions
  1. 25 0
      api/init.lua

+ 25 - 0
api/init.lua

@@ -4935,6 +4935,31 @@ return {
             "lovr.graphics.getLimits"
           }
         },
+        {
+          name = "BufferUsage",
+          summary = "How the buffer data will be updated.",
+          description = "This acts as a hint to the graphics driver about what kinds of data access should be optimized for.",
+          key = "BufferUsage",
+          module = "lovr.graphics",
+          values = {
+            {
+              name = "static",
+              description = "A buffer that you intend to create once and never modify."
+            },
+            {
+              name = "dynamic",
+              description = "A buffer which is modified occasionally."
+            },
+            {
+              name = "stream",
+              description = "A buffer which is entirely replaced on the order of every frame."
+            }
+          },
+          related = {
+            "ShaderBlock",
+            "lovr.graphics.newShaderBlock"
+          }
+        },
         {
           name = "CompareMode",
           summary = "Different depth test modes.",