Metodo ID3DX10Mesh::GetDeviceIndexBuffer

Accedere al buffer di indice della mesh dopo che è stato eseguito il commit nel dispositivo con ID3DX10Mesh::CommitToDevice. Questo valore è diverso da ID3DX10Mesh::GetIndexBuffer, che restituisce il buffer di indice prima che venga eseguito il commit nel dispositivo.

Sintassi

HRESULT GetDeviceIndexBuffer(
  [out] ID3D10Buffer **ppIndexBuffer
);

Parametri

ppIndexBuffer [out]

Tipo: ID3D10Buffer**

Buffer di indice dopo che è stato eseguito il commit nel dispositivo.

Valore restituito

Tipo: HRESULT

Il valore restituito è uno dei valori elencati in Codici restituiti Direct3D 10.

Commenti

Se il buffer di indice della mesh non è già stato eseguito il commit nel dispositivo, questa API eseguirà automaticamente il commit del buffer di indice prima che restituisca un puntatore al buffer.

Requisiti

Requisito Valore
Intestazione
D3DX10.h
Libreria
D3DX10.lib

Vedi anche

ID3DX10Mesh

Interfacce D3DX