Metodo ID3D11DeviceContext::CSGetConstantBuffers (d3d11.h)

Ottenere i buffer costanti usati dalla fase di calcolo-shader.

Sintassi

void CSGetConstantBuffers(
  [in]            UINT         StartSlot,
  [in]            UINT         NumBuffers,
  [out, optional] ID3D11Buffer **ppConstantBuffers
);

Parametri

[in] StartSlot

Tipo: UINT

Indice nella matrice in base zero del dispositivo per iniziare a recuperare i buffer costanti da (da 0 a D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1).

[in] NumBuffers

Tipo: UINT

Numero di buffer da recuperare (da 0 a D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot).

[out, optional] ppConstantBuffers

Tipo: ID3D11Buffer**

Matrice di puntatori dell'interfaccia del buffer costante (vedere ID3D11Buffer) da restituire dal metodo .

Valore restituito

nessuno

Osservazioni

Le interfacce restituite avranno il numero di riferimenti incrementato di uno. Le applicazioni devono chiamare IUnknown::Release nelle interfacce restituite quando non sono più necessarie per evitare perdite di memoria.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione d3d11.h
Libreria D3D11.lib

Vedi anche

ID3D11DeviceContext