From 326bebe45215f31bc787d0332db9eb314d54c44c Mon Sep 17 00:00:00 2001 From: Jefferson Amstutz Date: Mon, 8 Jun 2026 09:44:11 -0500 Subject: [PATCH] remove non-trivial SDF struct construction in union on GPU --- devices/rtx/device/gpu/gpu_objects.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/devices/rtx/device/gpu/gpu_objects.h b/devices/rtx/device/gpu/gpu_objects.h index db68bae25..c9a40242d 100644 --- a/devices/rtx/device/gpu/gpu_objects.h +++ b/devices/rtx/device/gpu/gpu_objects.h @@ -166,16 +166,16 @@ struct SDFPrimitive struct SDFGeometryData { - const SDFPrimitive *geometries{nullptr}; - const uint64_t *neighbours{nullptr}; - uint32_t numGeometries{0}; - float epsilon{1e-5f}; - uint32_t nbMarchIterations{128}; - float blendFactor{1.f}; - float blendLerpFactor{0.5f}; - float omega{1.f}; - float distanceFromCamera{100.f}; - float noiseFactor{0.f}; // [0,1]: 0=no noise, 1=max organic surface noise + const SDFPrimitive *geometries; + const uint64_t *neighbours; + uint32_t numGeometries; + float epsilon; + uint32_t nbMarchIterations; + float blendFactor; + float blendLerpFactor; + float omega; + float distanceFromCamera; + float noiseFactor; // [0,1]: 0=no noise, 1=max organic surface noise }; struct AttributeData