fix(step097): complete A2 clock and GPU field correctness
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled

This commit is contained in:
tei
2026-09-26 15:17:43 +09:00
parent 5bb1a0e635
commit f49ffa68a1
26 changed files with 610 additions and 86 deletions

View File

@@ -284,8 +284,17 @@ TEST(Source, RasterArrayGpuContentIdentityExcludesRuntimeGeneration) {
++changed.dataVersion;
EXPECT_TRUE(particle::fieldIdentityChanged(east, reloadedEast));
// Decoded content equivalence intentionally ignores producer generation and
// dataVersion; the stricter GPU endpoint identity must not ignore either.
EXPECT_TRUE(particle::sameFieldGpuContent(east, reloadedEast));
EXPECT_FALSE(particle::sameFieldGpuContent(east, changed));
EXPECT_TRUE(particle::sameFieldGpuContent(east, changed));
EXPECT_FALSE(particle::sameFieldGpuEndpoint(east, reloadedEast));
EXPECT_FALSE(particle::sameFieldGpuEndpoint(reloadedEast, changed));
auto changedBytes = changed;
changedBytes.vector[0] += 1.0f;
EXPECT_FALSE(particle::sameFieldGpuContent(east, changedBytes));
EXPECT_FALSE(particle::sameFieldGpuEndpoint(east, changedBytes));
}
TEST(Source, ParticleFieldDataAdapterAcceptsNeutralDescriptor) {