API
Babylon Lite API
|
getOrCreateSampler
…
|
Babylon Lite API
|
getOrCreateSampler
getOrCreateSampler
Function getOrCreateSampler
getOrCreateSampler
(
engine
:
EngineContext
,
descriptor
?:
GPUSamplerDescriptor
,
)
:
GPUSampler
Get or create a deduplicated sampler. Same pooled config returns the same sampler.
Parameters
engine
:
EngineContext
descriptor
:
GPUSamplerDescriptor
= {}
Returns
GPUSampler
Get or create a deduplicated sampler. Same pooled config returns the same sampler.