From 725f36a860a2baeefc53bf024a4dbaf8b83827a3 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 22 May 2025 15:23:30 +0800 Subject: [PATCH] (test) use RGBA32F when creating render target in TestHelper --- thermion_dart/test/helpers.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thermion_dart/test/helpers.dart b/thermion_dart/test/helpers.dart index 6ace085c..bccba57d 100644 --- a/thermion_dart/test/helpers.dart +++ b/thermion_dart/test/helpers.dart @@ -151,7 +151,7 @@ class TestHelper { final cubeGeometry = GeometryHelper.cube(flipUvs: true); var asset = await viewer .createGeometry(cubeGeometry, materialInstances: [materialInstance]); - print(cubeGeometry); + await fn(asset); await viewer.destroyAsset(asset); } @@ -231,7 +231,7 @@ class TestHelper { TextureUsage.TEXTURE_USAGE_COLOR_ATTACHMENT, TextureUsage.TEXTURE_USAGE_SAMPLEABLE }, - textureFormat: TextureFormat.RGB32F, + textureFormat: TextureFormat.RGBA32F, importedTextureHandle: metalColorTexture.metalTextureAddress); var width = await color.getWidth(); var height = await color.getHeight();