|
@@ -7200,6 +7200,42 @@ return {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name = "discard",
|
|
|
+ tag = "graphicsPrimitives",
|
|
|
+ summary = "Discard the current pixel values.",
|
|
|
+ description = "Discards pixel information in the active Canvas or display. This is mostly used as an optimization hint for the GPU, and is usually most helpful on mobile devices.",
|
|
|
+ key = "lovr.graphics.discard",
|
|
|
+ module = "lovr.graphics",
|
|
|
+ related = {
|
|
|
+ "lovr.graphics.clear"
|
|
|
+ },
|
|
|
+ variants = {
|
|
|
+ {
|
|
|
+ arguments = {
|
|
|
+ {
|
|
|
+ name = "color",
|
|
|
+ type = "boolean",
|
|
|
+ description = "Whether or not to discard color information.",
|
|
|
+ default = "true"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name = "depth",
|
|
|
+ type = "boolean",
|
|
|
+ description = "Whether or not to discard depth information.",
|
|
|
+ default = "true"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name = "stencil",
|
|
|
+ type = "boolean",
|
|
|
+ description = "Whether or not to discard stencil information.",
|
|
|
+ default = "true"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ returns = {}
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
name = "fill",
|
|
|
tag = "graphicsPrimitives",
|