MTLFunctionConstantValues.cs 739 B

12345678910111213141516171819202122
  1. using System;
  2. namespace Veldrid.MetalBindings
  3. {
  4. public struct MTLFunctionConstantValues
  5. {
  6. public readonly IntPtr NativePtr;
  7. public static MTLFunctionConstantValues New()
  8. {
  9. return s_class.AllocInit<MTLFunctionConstantValues>();
  10. }
  11. public unsafe void setConstantValuetypeatIndex(void* value, MTLDataType type, UIntPtr index)
  12. {
  13. ObjectiveCRuntime.objc_msgSend(NativePtr, sel_setConstantValuetypeatIndex, value, (uint)type, index);
  14. }
  15. private static readonly ObjCClass s_class = new ObjCClass(nameof(MTLFunctionConstantValues));
  16. private static readonly Selector sel_setConstantValuetypeatIndex = "setConstantValue:type:atIndex:";
  17. }
  18. }