示例#1
0
        public virtual int SetBackgroundProcessingMode(
            D3D12_BACKGROUND_PROCESSING_MODE Mode,
            D3D12_MEASUREMENTS_ACTION MeasurementsAction,
            IntPtr hEventToSignalUponCompletion,
            out int pbFurtherMeasurementsDesired
            )
        {
            var fp = GetFunctionPointer(65);

            if (m_SetBackgroundProcessingModeFunc == null)
            {
                m_SetBackgroundProcessingModeFunc = (SetBackgroundProcessingModeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetBackgroundProcessingModeFunc));
            }

            return(m_SetBackgroundProcessingModeFunc(m_ptr, Mode, MeasurementsAction, hEventToSignalUponCompletion, out pbFurtherMeasurementsDesired));
        }
示例#2
0
 public int SetBackgroundProcessingMode(D3D12_BACKGROUND_PROCESSING_MODE Mode, D3D12_MEASUREMENTS_ACTION MeasurementsAction, [NativeTypeName("HANDLE")] IntPtr hEventToSignalUponCompletion, [NativeTypeName("BOOL *")] int *pbFurtherMeasurementsDesired)
 {
     return(((delegate * unmanaged <ID3D12Device8 *, D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, IntPtr, int *, int>)(lpVtbl[65]))((ID3D12Device8 *)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired));
 }