D3DResourceType Enum

Definisi

Menentukan jenis permukaan Direct3D yang kompatibel dengan D3DImage kelas .

public enum class D3DResourceType
public enum D3DResourceType
type D3DResourceType = 
Public Enum D3DResourceType
Warisan
D3DResourceType

Bidang

IDirect3DSurface9 0

Menentukan permukaan IDirect3DSurface9.

Contoh

Contoh kode berikut menunjukkan cara menentukan D3DResourceType dalam panggilan ke SetBackBuffer metode . Untuk informasi selengkapnya, lihat Panduan: Hosting Konten Direct3D9 di WPF.

d3dimg.Lock();
// Repeatedly calling SetBackBuffer with the same IntPtr is 
// a no-op. There is no performance penalty.
d3dimg.SetBackBuffer(D3DResourceType.IDirect3DSurface9, pSurface);
HRESULT.Check(Render());
d3dimg.AddDirtyRect(new Int32Rect(0, 0, d3dimg.PixelWidth, d3dimg.PixelHeight));
d3dimg.Unlock();

Keterangan

D3DResourceType Gunakan saat Anda menetapkan permukaan Direct3D dalam D3DImage.SetBackBuffer metode .

Berlaku untuk

Lihat juga