GteDX11InputLayout.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
10 #include <Graphics/GteShader.h>
13 
14 namespace gte
15 {
16 
18 {
19 public:
20  // Construction and destruction.
21  ~DX11InputLayout();
22  DX11InputLayout(ID3D11Device* device, VertexBuffer const* vbuffer,
23  Shader const* vshader);
24 
25  // Support for drawing geometric primitives.
26  void Enable(ID3D11DeviceContext* context);
27  void Disable(ID3D11DeviceContext* context);
28 
29  // Support for the DX11 debug layer; see comments in the file
30  // GteDX11GraphicsObject.h about usage.
31  HRESULT SetName(std::string const& name);
32  inline std::string const& GetName() const;
33 
34 private:
35  ID3D11InputLayout* mLayout;
37  D3D11_INPUT_ELEMENT_DESC mElements[VA_MAX_ATTRIBUTES];
39 
40  // Conversions from GTEngine values to DX11 values.
41  static char const* msSemantic[VA_NUM_SEMANTICS];
42 };
43 
45 {
46  return mName;
47 }
48 
49 }
ID3D11InputLayout * mLayout
VA_MAX_ATTRIBUTES
std::string const & GetName() const
GLuint const GLchar * name
Definition: glcorearb.h:781
GLsizei const GLchar *const * string
Definition: glcorearb.h:809
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59