Open MarijnS95 opened 1 month ago
Right there's another documentation page that actually describes this.
It seems inconsistent at first, but after a while most *Descriptor
based types (that are created from a *Descriptor
with a var label? { get set }
) appear to have a readonly var label? { get }
on the final object/instance.
According to the upstream docs and the Metal Shader Converter implementation the
SamplerState
type has a way to get access to itsMTLResourceID
on the GPU: https://developer.apple.com/documentation/metal/mtlsamplerstate/3974101-gpuresourceid