IDirect3DDevice9::SetVertexDeclaration 메서드(d3d9helper.h)

꼭짓점 선언(Direct3D 9)을 설정합니다.

구문

HRESULT SetVertexDeclaration(
  [in] IDirect3DVertexDeclaration9 *pDecl
);

매개 변수

[in] pDecl

형식: IDirect3DVertexDeclaration9*

꼭짓점 선언을 포함하는 IDirect3DVertexDeclaration9 개체에 대한 포인터입니다.

반환 값

형식: HRESULT

메서드가 성공하면 반환 값이 D3D_OK. 반환 값은 D3DERR_INVALIDCALL 수 있습니다.

설명

꼭짓점 선언은 꼭짓점의 데이터 멤버(예: 텍스처 좌표, 색, 법선 등)를 정의하는 IDirect3DVertexDeclaration9 개체입니다. 이 데이터는 꼭짓점 셰이더 및 픽셀 셰이더를 구현하는 데 유용할 수 있습니다.

요구 사항

요구 사항
대상 플랫폼 Windows
헤더 d3d9helper.h(D3D9.h 포함)
라이브러리 D3D9.lib

추가 정보

IDirect3DDevice9

IDirect3DDevice9::GetVertexDeclaration