1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef WEBGLUNIFORMINFO_H_
7 #define WEBGLUNIFORMINFO_H_
9 #include "angle/ShaderLang.h"
13 struct WebGLUniformInfo
{
18 WebGLUniformInfo(uint32_t s
= 0, bool a
= false, ShDataType t
= SH_NONE
)
19 : arraySize(s
), isArray(a
), type(t
) {}
21 int ElementSize() const {
47 MOZ_ASSERT(false); // should never get here
53 } // namespace mozilla