共用方式為


IMTLArgumentEncoder 介面

定義

將資料編碼為引數緩衝區。

[Foundation.Protocol(Name="MTLArgumentEncoder", WrapperType=typeof(Metal.MTLArgumentEncoderWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IMTLArgumentEncoder : IDisposable, ObjCRuntime.INativeObject
type IMTLArgumentEncoder = interface
    interface INativeObject
    interface IDisposable
屬性
實作

屬性

Alignment

取得編碼資料的位元組對齊方式。

Device

取得編碼器的裝置。

EncodedLength

取得在緩衝區中儲存編碼資源所需的位元組數目。

Handle

處理非受控物件標記法) (指標。

(繼承來源 INativeObject)
Label

取得或設定編碼器的描述性標籤。

方法

CreateArgumentEncoder(nuint)

將資料編碼為引數緩衝區。

GetConstantData(nuint)

傳回指定之 緩衝區中 index 常數的指標。

SetArgumentBuffer(IMTLBuffer, nuint)

設定要編碼引數的目標緩衝區。

SetArgumentBuffer(IMTLBuffer, nuint, nuint)

設定要編碼引數的目標緩衝區。

SetBuffer(IMTLBuffer, nuint, nuint)

編碼 buffer 為引數緩衝區。

SetBuffers(IMTLBuffer[], IntPtr, NSRange)

編碼 buffers 為引數緩衝區。

SetSamplerState(IMTLSamplerState, nuint)

編碼 sampler 為引數緩衝區。

SetSamplerStates(IMTLSamplerState[], NSRange)

將提供的 samplers 編碼為引數緩衝區。

SetTexture(IMTLTexture, nuint)

將提供的 texture 編碼為引數緩衝區。

SetTextures(IMTLTexture[], NSRange)

將提供的 textures 編碼為引數緩衝區。

擴充方法

CreateArgumentEncoder(IMTLArgumentEncoder, nuint)

將資料編碼為引數緩衝區。

SetBuffers(IMTLArgumentEncoder, IMTLBuffer[], nint[], NSRange)

編碼 buffers 為引數緩衝區。

SetIndirectCommandBuffer(IMTLArgumentEncoder, IMTLIndirectCommandBuffer, nuint)

將資料編碼為引數緩衝區。

SetIndirectCommandBuffers(IMTLArgumentEncoder, IMTLIndirectCommandBuffer[], NSRange)

將資料編碼為引數緩衝區。

SetRenderPipelineState(IMTLArgumentEncoder, IMTLRenderPipelineState, nuint)

將資料編碼為引數緩衝區。

SetRenderPipelineStates(IMTLArgumentEncoder, IMTLRenderPipelineState[], NSRange)

將資料編碼為引數緩衝區。

適用於