debugSamplerCount property
int
get
debugSamplerCount
How many distinct sampler objects this device has made.
Diagnostic, and the number that says whether _samplerFor is doing its
job: a frame binding a hundred textures with SamplerDescriptor.linearRepeat
should leave this at one. Read by webgpu_draw_test.dart, which is the
only way to tell a cache hit from an allocation that happened to look the
same.
Implementation
int get debugSamplerCount => _samplers.length;