Share via


IMTLSamplerState Interface

Definition

System protocol the way that shaders or compute kernels will sample textures.

[Foundation.Protocol(Name="MTLSamplerState", WrapperType=typeof(Metal.MTLSamplerStateWrapper))]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="label", IsProperty=true, IsRequired=true, IsStatic=false, Name="Label", PropertyType=typeof(System.String), Selector="label")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="device", IsProperty=true, IsRequired=true, IsStatic=false, Name="Device", PropertyType=typeof(Metal.IMTLDevice), Selector="device")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="gpuResourceID", IsProperty=true, IsRequired=true, IsStatic=false, Name="GpuResourceId", PropertyType=typeof(Metal.MTLResourceId), Selector="gpuResourceID")]
public interface IMTLSamplerState : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="MTLSamplerState", WrapperType=typeof(Metal.MTLSamplerStateWrapper))>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="label", IsProperty=true, IsRequired=true, IsStatic=false, Name="Label", PropertyType=typeof(System.String), Selector="label")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="device", IsProperty=true, IsRequired=true, IsStatic=false, Name="Device", PropertyType=typeof(Metal.IMTLDevice), Selector="device")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="gpuResourceID", IsProperty=true, IsRequired=true, IsStatic=false, Name="GpuResourceId", PropertyType=typeof(Metal.MTLResourceId), Selector="gpuResourceID")>]
type IMTLSamplerState = interface
    interface INativeObject
    interface IDisposable
Attributes
Implements

Properties

Name Description
Device
GpuResourceId
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
Label

Extension Methods

Name Description
GetGpuResourceId(IMTLSamplerState)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to