Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
DX11
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
>
11
#include <
Graphics/GteVertexBuffer.h
>
12
#include <
Graphics/DX11/GteDX11Include.h
>
13
14
namespace
gte
15
{
16
17
class
GTE_IMPEXP
DX11InputLayout
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
;
36
int
mNumElements
;
37
D3D11_INPUT_ELEMENT_DESC mElements[
VA_MAX_ATTRIBUTES
];
38
std::string
mName
;
39
40
// Conversions from GTEngine values to DX11 values.
41
static
char
const
* msSemantic[VA_NUM_SEMANTICS];
42
};
43
44
inline
std::string
const
&
DX11InputLayout::GetName
()
const
45
{
46
return
mName;
47
}
48
49
}
gte::DX11InputLayout::mLayout
ID3D11InputLayout * mLayout
Definition:
GteDX11InputLayout.h:35
gte::DX11InputLayout
Definition:
GteDX11InputLayout.h:17
GteShader.h
VA_MAX_ATTRIBUTES
VA_MAX_ATTRIBUTES
Definition:
GteVertexFormat.h:41
gte::DX11InputLayout::GetName
std::string const & GetName() const
Definition:
GteDX11InputLayout.h:44
name
GLuint const GLchar * name
Definition:
glcorearb.h:781
gte::VertexBuffer
Definition:
GteVertexBuffer.h:18
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:809
gte::DX11InputLayout::mName
std::string mName
Definition:
GteDX11InputLayout.h:38
gte
Definition:
GLX/GteWICFileIO.h:16
GteVertexBuffer.h
GteDX11Include.h
gte::Shader
Definition:
GteShader.h:33
gte::DX11InputLayout::mNumElements
int mNumElements
Definition:
GteDX11InputLayout.h:36
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59