Skip to content

Commit

Permalink
Only keep track of sub-objects when necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
fyellin committed Oct 21, 2024
1 parent 4b2b67e commit ca67b7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests_mem/test_object_retention.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
end_pipeline_statistics_query,
)

#
# wgpu is generally good at keeping alive those objects that it needs to complete a
# GPU operation. This file has tests that agressively deletes objects (so that their
# release method will be called) even though the GPU has pending operations on them.
# We confirm that the operations complete successfully.

SHADER_SOURCE = """
@group(0) @binding(0) var<uniform> offset: vec2f;
Expand Down

0 comments on commit ca67b7e

Please sign in to comment.