Browse Source

Add note about push/pop for pipeline states;

bjorn 1 year ago
parent
commit
a7ab4c9ef5
2 changed files with 5 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 4 1
      api/lovr/graphics/Pass/init.lua

+ 1 - 1
api/init.lua

@@ -21290,7 +21290,7 @@ return {
             {
               name = "Render States",
               tag = "pipeline",
-              description = "Set render states that change the way drawing happens."
+              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 = "Shader Variables",

+ 4 - 1
api/lovr/graphics/Pass/init.lua

@@ -35,7 +35,10 @@ return {
     {
       name = 'Render States',
       tag = 'pipeline',
-      description = 'Set render states that change the way drawing happens.'
+      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 = 'Shader Variables',