bjorn 1 year ago
parent
commit
ac4ff3d532
3 changed files with 26 additions and 17 deletions
  1. 10 8
      api/init.lua
  2. 1 1
      api/lovr/graphics/Pass/draw.lua
  3. 15 8
      api/lovr/graphics/Pass/init.lua

+ 10 - 8
api/init.lua

@@ -18191,7 +18191,7 @@ return {
             {
               name = "draw",
               tag = "drawing",
-              summary = "Draw a `Model`, `Mesh`, or `Texture`.",
+              summary = "Draw a Model, Mesh, or Texture.",
               description = "Draws a `Model`, `Mesh`, or `Texture`.",
               key = "Pass:draw",
               module = "lovr.graphics",
@@ -21883,15 +21883,12 @@ return {
             {
               name = "Render States",
               tag = "pipeline",
-              description = "Set render states that change the way drawing happens.  `Pass:push` and `Pass:pop` with a `StackType` of `state` can be used to save and restore render states."
-            },
-            {
-              name = "Camera",
-              tag = "camera"
+              description = "Set render states that change the way drawing happens.  Render states can be saved and restored using `Pass:push` and `Pass:pop`."
             },
             {
               name = "Shaders",
-              tag = "shaders"
+              tag = "shaders",
+              description = "Change the shader used for draws or computes, and set variables in the active shader."
             },
             {
               name = "Compute",
@@ -21899,7 +21896,12 @@ return {
             },
             {
               name = "Tally",
-              tag = "tally"
+              tag = "tally",
+              description = "Tallies are used to count the number of pixels affected by one or more draws.  This can be used as a way to detect if an object is visible."
+            },
+            {
+              name = "Camera",
+              tag = "camera"
             },
             {
               name = "Canvas",

+ 1 - 1
api/lovr/graphics/Pass/draw.lua

@@ -1,6 +1,6 @@
 return {
   tag = 'drawing',
-  summary = 'Draw a `Model`, `Mesh`, or `Texture`.',
+  summary = 'Draw a Model, Mesh, or Texture.',
   description = 'Draws a `Model`, `Mesh`, or `Texture`.',
   arguments = {
     object = {

+ 15 - 8
api/lovr/graphics/Pass/init.lua

@@ -40,17 +40,16 @@ return {
       name = 'Render States',
       tag = 'pipeline',
       description = [[
-        Set render states that change the way drawing happens.  `Pass:push` and `Pass:pop` with a
-        `StackType` of `state` can be used to save and restore render states.
+        Set render states that change the way drawing happens.  Render states can be saved and
+        restored using `Pass:push` and `Pass:pop`.
       ]]
     },
-    {
-      name = 'Camera',
-      tag = 'camera'
-    },
     {
       name = 'Shaders',
-      tag = 'shaders'
+      tag = 'shaders',
+      description = [[
+        Change the shader used for draws or computes, and set variables in the active shader.
+      ]]
     },
     {
       name = 'Compute',
@@ -58,7 +57,15 @@ return {
     },
     {
       name = 'Tally',
-      tag = 'tally'
+      tag = 'tally',
+      description = [[
+        Tallies are used to count the number of pixels affected by one or more draws.  This can be
+        used as a way to detect if an object is visible.
+      ]]
+    },
+    {
+      name = 'Camera',
+      tag = 'camera'
     },
     {
       name = 'Canvas',