Example #1
0
 public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1)
 {
     this.name        = name;
     this.type        = type;
     this.scope       = scope;
     this.arrayLength = arrayLength;
 }
Example #2
0
 public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1)
 {
     this.name = name;
     this.type = type;
     this.scope = scope;
     this.arrayLength = arrayLength;
 }
Example #3
0
 public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1)
 {
     this.name        = name;
     this.type        = type;
     this.scope       = scope;
     this.arrayLength = arrayLength;
     this.isPrivate   = string.IsNullOrEmpty(name) || name[0] == '_';
 }
Example #4
0
		public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1)
		{
			this.name = name;
			this.type = type;
			this.scope = scope;
			this.arrayLength = arrayLength;
			this.isPrivate = 
				string.IsNullOrEmpty(name) || 
				name[0] == '_' || 
				BuiltinShaderFields.GetIndex(name) != BuiltinShaderFields.InvalidIndex;
		}
Example #5
0
 public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength = 1)
 {
     this.name        = name;
     this.type        = type;
     this.scope       = scope;
     this.arrayLength = arrayLength;
     this.isPrivate   =
         string.IsNullOrEmpty(name) ||
         name[0] == '_' ||
         BuiltinShaderFields.GetIndex(name) != BuiltinShaderFields.InvalidIndex;
 }
Example #6
0
 public ShaderFieldInfo(string name, ShaderFieldType type, ShaderFieldScope scope, int arrayLength, string editorTypeTag, string description, float minValue, float maxValue)
 {
     this.name          = name;
     this.type          = type;
     this.scope         = scope;
     this.arrayLength   = arrayLength;
     this.editorTypeTag = editorTypeTag;
     this.description   = description;
     this.minValue      = minValue;
     this.maxValue      = maxValue;
     this.isPrivate     = string.IsNullOrEmpty(name) || name[0] == '_';
 }