/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"gfxTypes.h" #include"ImageTypes.h" #include"mozilla/Assertions.h"// for MOZ_ASSERT, etc #include"mozilla/RefPtr.h"// for RefPtr #include"mozilla/gfx/Matrix.h"// for Matrix4x4 #include"mozilla/gfx/Rect.h"// for Rect #include"mozilla/gfx/Types.h" #include"nsDebug.h"// for NS_ASSERTION #include"nsPoint.h"// for nsIntPoint #include"nsTArray.h"// for nsTArray #include"mozilla/layers/CompositorTypes.h"
bool UpdateArrayUniform(int cnt, const gfx::Point3D* points) { if (mLocation == -1) returnfalse; if (cnt > 4) { returnfalse;
}
float fp[12]; float* d = fp; for (int i = 0; i < cnt; i++) { // Note: Do not want to make assumptions about .x, .y, .z member packing. // If gfx::Point3D is updated to make this guarantee, SIMD optimizations // may be possible
*d++ = points[i].x;
*d++ = points[i].y;
*d++ = points[i].z;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.