IMTLArgumentEncoder 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将数据编码为参数缓冲区。
[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) |
在缓冲区中返回指向指定 |
| SetArgumentBuffer(IMTLBuffer, nuint, nuint) |
设置参数将编码到的目标缓冲区。 |
| SetArgumentBuffer(IMTLBuffer, nuint) |
设置参数将编码到的目标缓冲区。 |
| SetBuffer(IMTLBuffer, nuint, nuint) |
编码 |
| SetBuffers(IMTLBuffer[], IntPtr, NSRange) |
编码 |
| SetSamplerState(IMTLSamplerState, nuint) |
|
| SetSamplerStates(IMTLSamplerState[], NSRange) |
将提供的 |
| SetTexture(IMTLTexture, nuint) |
将提供的 |
| SetTextures(IMTLTexture[], NSRange) |
将提供的 |