Compartir a través de


Interfaz ID3D10ShaderReflectionConstantBuffer (d3d10shader.h)

Esta interfaz de reflexión de sombreador proporciona acceso a un búfer de constantes.

Métodos

La interfaz ID3D10ShaderReflectionConstantBuffer tiene estos métodos.

 
ID3D10ShaderReflectionConstantBuffer::GetDesc

Obtiene una descripción del búfer de constantes. (ID3D10ShaderReflectionConstantBuffer.GetDesc)
ID3D10ShaderReflectionConstantBuffer::GetVariableByIndex

El método ID3D10ShaderReflectionConstantBuffer::GetVariableByIndex (d3d10shader.h) obtiene una variable de reflexión de sombreador por índice.
ID3D10ShaderReflectionConstantBuffer::GetVariableByName

Obtiene una variable de reflexión de sombreador por nombre. (ID3D10ShaderReflectionConstantBuffer.GetVariableByName)

Comentarios

Para crear una interfaz de búfer constante, llame a ID3D10ShaderReflection::GetConstantBufferByIndex o ID3D10ShaderReflection::GetConstantBufferByName. No es una interfaz COM; por lo tanto, no es necesario preocuparse por los recuentos de referencias ni liberar la interfaz cuando haya terminado con él.

Requisitos

Requisito Value
Plataforma de destino Windows
Encabezado d3d10shader.h

Consulte también

Interfaces de los sombreadores