public ShaderUniformDeclaration(ShaderStruct uniformStruct, string name, int count = 1) { Type = ShaderUniformType.STRUCT; Struct = uniformStruct; Name = name; Count = count; Size = Struct.Size * Count; }
public GLShaderUniformDeclaration(ShaderStruct uniformStruct, string name, uint count = 1) { this.@struct = uniformStruct; this.type = Type.STRUCT; this.name = name; this.count = count; this.size = @struct.GetSize() * count; }
public GLShaderUniformDeclaration(Type type, string name, uint count = 1) { this.type = type; this.@struct = null; this.name = name; this.count = count; this.size = SizeOfUniformType(type) * count; }