Example #1
0
        /// <inheritdoc/>
        protected internal override unsafe void MemSetInternal(
            AcceleratorStream stream,
            byte value,
            long offsetInBytes,
            long lengthInBytes)
        {
            var binding = Accelerator.BindScoped();

            CudaException.ThrowIfFailed(
                CurrentAPI.Memset(
                    new IntPtr(NativePtr.ToInt64() + offsetInBytes),
                    value,
                    new IntPtr(lengthInBytes),
                    stream));

            binding.Recover();
        }
Example #2
0
 set => Script_setSourceCode(NativePtr, value);
Example #3
0
 Entity_setName(NativePtr, value);
Example #4
0
 public override int GetHashCode()
 {
     return(NativePtr.ToInt32());
 }
 set => objc_msgSend(NativePtr, sel_setStencilFailureOperation, (uint)value);
Example #6
0
 set => Level_setCamera(NativePtr, value);
Example #7
0
 set => objc_msgSend(NativePtr, sel_setRAddressMode, (uint)value);
Example #8
0
 set => objc_msgSend(NativePtr, sel_setFastMathEnabled, value);
Example #9
0
 get => makeNativeObjectDelegate.Invoke(NativeLists.PointerList_get(NativePtr, index));
Example #10
0
 set => objc_msgSend(NativePtr, sel_setTextureType, (uint)value);
Example #11
0
 get => (MTLTextureType)uint_objc_msgSend(NativePtr, sel_textureType);
Example #12
0
 set => objc_msgSend(NativePtr, sel_setComputeFunction, value.NativePtr);
Example #13
0
 set => Shader_setSourceCode(NativePtr, value);
Example #14
0
 set => RenderStep_setCamera(NativePtr, value);
Example #15
0
 set => objc_msgSend(NativePtr, Selectors.setObjectAtIndexedSubscript, value.NativePtr, index);
Example #16
0
 get => bool8_objc_msgSend(NativePtr, sel_fastMathEnabled);
Example #17
0
 set => SetGravity_Native(NativePtr, value);
Example #18
0
 get => (MTLSamplerAddressMode)uint_objc_msgSend(NativePtr, sel_rAddressMode);
 get => (MTLStencilOperation)uint_objc_msgSend(NativePtr, sel_stencilFailureOperation);
Example #20
0
 /// <summary cref="MemoryBuffer.MemSetToZero(AcceleratorStream)"/>
 public unsafe override void MemSetToZero(AcceleratorStream stream)
 {
     stream.Synchronize();
     Unsafe.InitBlock(NativePtr.ToPointer(), 0, (uint)LengthInBytes);
 }
Example #21
0
 get => makeNativeObjectDelegate.Invoke(NativeLists.EntityList_get(NativePtr, index));