@@ -80,7 +80,7 @@ public static bool TryEncode(
8080 return true ;
8181 }
8282
83- encodedScene = SupportedSubsetSceneResolver . Resolve ( encoding , targetBounds , allocator ) ;
83+ encodedScene = SupportedSubsetSceneResolver . Resolve ( ref encoding , targetBounds , allocator ) ;
8484 error = null ;
8585 return true ;
8686 }
@@ -806,7 +806,7 @@ private static class SupportedSubsetSceneResolver
806806 /// Resolves the mutable encoding into the final packed scene buffers.
807807 /// </summary>
808808 public static WebGPUEncodedScene Resolve (
809- SupportedSubsetSceneEncoding encoding ,
809+ ref SupportedSubsetSceneEncoding encoding ,
810810 in Rectangle targetBounds ,
811811 MemoryAllocator allocator )
812812 {
@@ -854,7 +854,7 @@ public static WebGPUEncodedScene Resolve(
854854 encoding . InfoWordCount ,
855855 sceneDataOwner ,
856856 sceneWordCount ,
857- DetachGradientPixels ( encoding ) ,
857+ DetachGradientPixels ( ref encoding ) ,
858858 encoding . Images ,
859859 encoding . GradientRowCount ,
860860 layout ,
@@ -886,7 +886,7 @@ public static WebGPUEncodedScene Resolve(
886886 /// <summary>
887887 /// Detaches the gradient pixel payload when gradients were emitted for the flush.
888888 /// </summary>
889- private static IMemoryOwner < uint > ? DetachGradientPixels ( SupportedSubsetSceneEncoding encoding )
889+ private static IMemoryOwner < uint > ? DetachGradientPixels ( ref SupportedSubsetSceneEncoding encoding )
890890 {
891891 if ( encoding . GradientRowCount == 0 )
892892 {
0 commit comments