コード例 #1
0
        public void Present(uint syncInterval, DxgiPresentOptions options, DxgiRect[] dirtyRects, DxgiRect scrollRect, DxgiPoint scrollOffset)
        {
            if (dirtyRects == null)
            {
                throw new ArgumentNullException("dirtyRects");
            }

            var dirtyRectsHandle   = GCHandle.Alloc(dirtyRects[0], GCHandleType.Pinned);
            var scrollRectHandle   = GCHandle.Alloc(scrollRect, GCHandleType.Pinned);
            var scrollOffsetHandle = GCHandle.Alloc(scrollOffset, GCHandleType.Pinned);

            DxgiPresentParameters parameters = new DxgiPresentParameters();

            parameters.DirtyRectsCount = (uint)dirtyRects.Length;
            parameters.DirtyRects      = dirtyRectsHandle.AddrOfPinnedObject();
            parameters.ScrollRect      = scrollRectHandle.AddrOfPinnedObject();
            parameters.ScrollOffset    = scrollOffsetHandle.AddrOfPinnedObject();

            this.swapChain.Present1(syncInterval, options, ref parameters);

            dirtyRectsHandle.Free();
            scrollRectHandle.Free();
            scrollOffsetHandle.Free();
        }
コード例 #2
0
 public DxgiError Present(int syncInterval, DxgiPresentOptions flags) =>
 base.innerRefT.Present(syncInterval, flags);
コード例 #3
0
 public void Present(uint syncInterval, DxgiPresentOptions options)
 {
     this.swapChain.Present(syncInterval, options);
 }
コード例 #4
0
 public void Present(uint syncInterval, DxgiPresentOptions options)
 {
     this.swapChain.Present(syncInterval, options);
 }
コード例 #5
0
        public void Present(uint syncInterval, DxgiPresentOptions options)
        {
            DxgiPresentParameters parameters = default(DxgiPresentParameters);

            this.swapChain.Present1(syncInterval, options, ref parameters);
        }
コード例 #6
0
        public void Present(uint syncInterval, DxgiPresentOptions options, DxgiRect[] dirtyRects, DxgiRect scrollRect, DxgiPoint scrollOffset)
        {
            if (dirtyRects == null)
            {
                throw new ArgumentNullException("dirtyRects");
            }

            var dirtyRectsHandle = GCHandle.Alloc(dirtyRects[0], GCHandleType.Pinned);
            var scrollRectHandle = GCHandle.Alloc(scrollRect, GCHandleType.Pinned);
            var scrollOffsetHandle = GCHandle.Alloc(scrollOffset, GCHandleType.Pinned);

            DxgiPresentParameters parameters = new DxgiPresentParameters();
            parameters.DirtyRectsCount = (uint)dirtyRects.Length;
            parameters.DirtyRects = dirtyRectsHandle.AddrOfPinnedObject();
            parameters.ScrollRect = scrollRectHandle.AddrOfPinnedObject();
            parameters.ScrollOffset = scrollOffsetHandle.AddrOfPinnedObject();

            this.swapChain.Present1(syncInterval, options, ref parameters);

            dirtyRectsHandle.Free();
            scrollRectHandle.Free();
            scrollOffsetHandle.Free();
        }
コード例 #7
0
        public void Present(uint syncInterval, DxgiPresentOptions options)
        {
            DxgiPresentParameters parameters = default(DxgiPresentParameters);

            this.swapChain.Present1(syncInterval, options, ref parameters);
        }