Share via


ID3D12ShaderReflection::GetConstantBufferByIndex 메서드(d3d12shader.h)

인덱스별로 상수 버퍼를 가져옵니다.

구문

ID3D12ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
  [in] UINT Index
);

매개 변수

[in] Index

형식: UINT

인덱스(0부터 시작)입니다.

반환 값

형식: ID3D12ShaderReflectionConstantBuffer*

상수 버퍼에 대한 포인터입니다( ID3D12ShaderReflectionConstantBuffer 인터페이스 참조).

설명

상수 버퍼는 스칼라 상수 또는 텍스처 상수를 셰이더에 제공합니다. 셰이더는 하나 이상의 상수 버퍼를 사용할 수 있습니다. 최상의 성능을 위해 업데이트되는 빈도에 따라 상수를 버퍼로 구분합니다.

이 메서드의 인터페이스는 기본 제공 DLL D3DCompiler_xx.dll 호스트됩니다.

요구 사항

   
대상 플랫폼 Windows
헤더 d3d12shader.h

추가 정보

ID3D12ShaderReflection