Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.11 KB

setDebugLevel.markdown

File metadata and controls

37 lines (22 loc) · 1.11 KB

shader.setDebugLevel()

 
Type function
Library shader.*
See also getDebugLevel()
Visual Guide Visual Guide

Overview

Sets the level of Dynamic Shader debug information returned to the console via print() functions

Syntax

shader.setDebugLevel( number )

number is a value between 0 and 2

  • 0 = no debug messages print() to console
  • 1 = major debug messages print() to console
  • 2 = all debug messages print() to console

Examples

local shader = require 'plugin.dynamic-shader'

shader.setDebugLevel( 0 ) -- no debug messaging
shader.setDebugLevel( 1 ) -- major debug messages print() to console
shader.setDebugLevel( 2 ) -- all debug messages print() to console