Returns a sampler shared per engine for the given descriptor, creating it on first use.
Use this for default samplers that are set on many materials. Creating a new Sampler per material
creates one GPU sampler object per material, and the renderer then has to rebind the sampler on
every draw because no two consecutive materials share one. Samplers are immutable after creation,
so sharing them is safe.
Returns a sampler shared per engine for the given descriptor, creating it on first use.
Use this for default samplers that are set on many materials. Creating a new Sampler per material creates one GPU sampler object per material, and the renderer then has to rebind the sampler on every draw because no two consecutive materials share one. Samplers are immutable after creation, so sharing them is safe.