コード例 #1
0
        public DxgiSurface(object resource)
        {
            IntPtr ptr = Marshal.GetIUnknownForObject(resource);

            try
            {
                this.surface = (IDxgiSurface)Marshal.GetObjectForIUnknown(ptr);
            }
            finally
            {
                Marshal.Release(ptr);
            }
        }
コード例 #2
0
        public DxgiSurface(object resource)
        {
            IntPtr ptr = Marshal.GetIUnknownForObject(resource);

            try
            {
                this.surface = (IDxgiSurface)Marshal.GetObjectForIUnknown(ptr);
            }
            finally
            {
                Marshal.Release(ptr);
            }
        }
コード例 #3
0
 public static IDxgiSurface CreateRef(this IDxgiSurface objectRef) =>
 ((IDxgiSurface)objectRef.CreateRef(typeof(IDxgiSurface)));
コード例 #4
0
 internal DxgiSurface(IDxgiSurface surface)
 {
     this.surface = surface;
 }
コード例 #5
0
 public void SetDisplaySurface(IDxgiSurface scanoutSurface)
 {
     base.innerRefT.SetDisplaySurface(scanoutSurface);
 }
コード例 #6
0
 public void GetDisplaySurfaceData(IDxgiSurface destination)
 {
     base.innerRefT.GetDisplaySurfaceData(destination);
 }
コード例 #7
0
 internal DxgiSurface(IDxgiSurface surface)
 {
     this.surface = surface;
 }