Exemplo n.º 1
0
 public void dispatchThreadgroupsWithIndirectBuffer(
     MTLBuffer indirectBuffer,
     UIntPtr indirectBufferOffset,
     MTLSize threadsPerThreadgroup)
 => objc_msgSend(NativePtr, sel_dispatchThreadgroups1,
                 indirectBuffer.NativePtr,
                 indirectBufferOffset,
                 threadsPerThreadgroup);
Exemplo n.º 2
0
 public static extern void objc_msgSend(
     IntPtr receiver,
     Selector selector,
     MTLBuffer a,
     UIntPtr b,
     MTLBuffer c,
     UIntPtr d,
     UIntPtr e);
Exemplo n.º 3
0
 public static extern void objc_msgSend(
     IntPtr receiver,
     Selector selector,
     MTLPrimitiveType a,
     MTLIndexType b,
     MTLBuffer c,
     UIntPtr d,
     MTLBuffer e,
     UIntPtr f);
Exemplo n.º 4
0
 public void copy(
     MTLBuffer sourceBuffer,
     UIntPtr sourceOffset,
     MTLBuffer destinationBuffer,
     UIntPtr destinationOffset,
     UIntPtr size)
 => objc_msgSend(
     NativePtr,
     sel_copyFromBuffer0,
     sourceBuffer, sourceOffset, destinationBuffer, destinationOffset, size);
Exemplo n.º 5
0
 public static extern void objc_msgSend(
     IntPtr receiver,
     Selector selector,
     MTLTexture a,
     UIntPtr b,
     UIntPtr c,
     MTLOrigin d,
     MTLSize e,
     MTLBuffer f,
     UIntPtr g,
     UIntPtr h,
     UIntPtr i);
Exemplo n.º 6
0
 public void copyTextureToBuffer(
     MTLTexture sourceTexture,
     UIntPtr sourceSlice,
     UIntPtr sourceLevel,
     MTLOrigin sourceOrigin,
     MTLSize sourceSize,
     MTLBuffer destinationBuffer,
     UIntPtr destinationOffset,
     UIntPtr destinationBytesPerRow,
     UIntPtr destinationBytesPerImage)
 => objc_msgSend(NativePtr, sel_copyFromTexture,
                 sourceTexture,
                 sourceSlice,
                 sourceLevel,
                 sourceOrigin,
                 sourceSize,
                 destinationBuffer,
                 destinationOffset,
                 destinationBytesPerRow,
                 destinationBytesPerImage);
Exemplo n.º 7
0
 public void copyFromBuffer(
     MTLBuffer sourceBuffer,
     UIntPtr sourceOffset,
     UIntPtr sourceBytesPerRow,
     UIntPtr sourceBytesPerImage,
     MTLSize sourceSize,
     MTLTexture destinationTexture,
     UIntPtr destinationSlice,
     UIntPtr destinationLevel,
     MTLOrigin destinationOrigin)
 => objc_msgSend(
     NativePtr,
     sel_copyFromBuffer1,
     sourceBuffer.NativePtr,
     sourceOffset,
     sourceBytesPerRow,
     sourceBytesPerImage,
     sourceSize,
     destinationTexture.NativePtr,
     destinationSlice,
     destinationLevel,
     destinationOrigin);
Exemplo n.º 8
0
 public static extern void objc_msgSend(IntPtr receiver, Selector selector, MTLPrimitiveType a, MTLBuffer b, UIntPtr c);
Exemplo n.º 9
0
 public void setBuffer(MTLBuffer buffer, UIntPtr offset, UIntPtr index)
 => objc_msgSend(NativePtr, sel_setBuffer,
                 buffer.NativePtr,
                 offset,
                 index);