// This file is part of the 64k demo project. // It tests the UniformHelper template. #include "gpu/uniform_helper.h" #include #include // Test uniform struct struct TestUniforms { float time; float intensity; float color[3]; float _pad; }; void test_uniform_buffer_init() { // This test requires WebGPU device initialization // For now, just verify the template compiles UniformBuffer buffer; (void)buffer; } void test_uniform_buffer_sizeof() { // Verify sizeof works correctly static_assert(sizeof(TestUniforms) == 24, "TestUniforms should be 24 bytes"); } int main() { test_uniform_buffer_init(); test_uniform_buffer_sizeof(); return 0; }