diff --git a/src/sampler.rs b/src/sampler.rs index e9f6416..fef6666 100644 --- a/src/sampler.rs +++ b/src/sampler.rs @@ -158,4 +158,8 @@ impl SamplerStateRef { crate::nsstring_as_str(label) } } + + pub fn gpu_resource_id(&self) -> MTLResourceID { + unsafe { msg_send![self, gpuResourceID] } + } }