public DxgiSurface(object resource) { IntPtr ptr = Marshal.GetIUnknownForObject(resource); try { this.surface = (IDxgiSurface)Marshal.GetObjectForIUnknown(ptr); } finally { Marshal.Release(ptr); } }
public static IDxgiSurface CreateRef(this IDxgiSurface objectRef) => ((IDxgiSurface)objectRef.CreateRef(typeof(IDxgiSurface)));
internal DxgiSurface(IDxgiSurface surface) { this.surface = surface; }
public void SetDisplaySurface(IDxgiSurface scanoutSurface) { base.innerRefT.SetDisplaySurface(scanoutSurface); }
public void GetDisplaySurfaceData(IDxgiSurface destination) { base.innerRefT.GetDisplaySurfaceData(destination); }