Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
DX11
GteDX11TextureBuffer.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/GteTextureBuffer.h
>
11
#include <
Graphics/DX11/GteDX11Buffer.h
>
12
13
namespace
gte
14
{
15
16
class
GTE_IMPEXP
DX11TextureBuffer
:
public
DX11Buffer
17
{
18
public
:
19
// Construction and destruction.
20
virtual
~
DX11TextureBuffer
();
21
DX11TextureBuffer
(ID3D11Device* device,
TextureBuffer
const
* tbuffer);
22
static
std::shared_ptr<GEObject> Create(
void
* device,
GraphicsObject
const
*
object
);
23
24
// Member access.
25
inline
TextureBuffer
* GetTextureBuffer()
const
;
26
inline
ID3D11ShaderResourceView* GetSRView()
const
;
27
28
// Support for the DX11 debug layer; see comments in the file
29
// GteDX11GraphicsObject.h about usage.
30
virtual
void
SetName(
std::string
const
&
name
);
31
32
private
:
33
// Support for construction.
34
void
CreateSRView(ID3D11Device* device);
35
36
ID3D11ShaderResourceView*
mSRView
;
37
};
38
39
inline
TextureBuffer
*
DX11TextureBuffer::GetTextureBuffer
()
const
40
{
41
return
static_cast<
TextureBuffer
*
>
(mGTObject);
42
}
43
44
inline
ID3D11ShaderResourceView*
DX11TextureBuffer::GetSRView
()
const
45
{
46
return
mSRView;
47
}
48
49
}
gte::DX11TextureBuffer::mSRView
ID3D11ShaderResourceView * mSRView
Definition:
GteDX11TextureBuffer.h:36
GteDX11Buffer.h
name
GLuint const GLchar * name
Definition:
glcorearb.h:781
gte::DX11TextureBuffer
Definition:
GteDX11TextureBuffer.h:16
gte::GraphicsObject
Definition:
GteGraphicsObject.h:115
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:809
gte
Definition:
GLX/GteWICFileIO.h:16
gte::DX11Buffer
Definition:
GteDX11Buffer.h:16
GteTextureBuffer.h
gte::TextureBuffer
Definition:
GteTextureBuffer.h:19
gte::DX11TextureBuffer::GetSRView
ID3D11ShaderResourceView * GetSRView() const
Definition:
GteDX11TextureBuffer.h:44
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
gte::DX11TextureBuffer::GetTextureBuffer
TextureBuffer * GetTextureBuffer() const
Definition:
GteDX11TextureBuffer.h:39
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59