Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
DX11
GteDX11TextureDS.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.1 (2016/11/13)
7
8
#pragma once
9
10
#include <
Graphics/GteTextureDS.h
>
11
#include <
Graphics/DX11/GteDX11Texture2.h
>
12
13
namespace
gte
14
{
15
16
class
GTE_IMPEXP
DX11TextureDS
:
public
DX11Texture2
17
{
18
public
:
19
// Construction and destruction.
20
virtual
~
DX11TextureDS
();
21
DX11TextureDS
(ID3D11Device* device,
TextureDS
const
*
texture
);
22
DX11TextureDS
(ID3D11Device* device,
DX11TextureDS
const
* dxSharedTexture);
23
static
std::shared_ptr<GEObject> Create(
void
* device,
GraphicsObject
const
*
object
);
24
25
// Member access.
26
inline
ID3D11DepthStencilView* GetDSView()
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
CreateDSView(ID3D11Device* device);
35
void
CreateDSSRView(ID3D11Device* device);
36
DXGI_FORMAT GetDepthResourceFormat(DXGI_FORMAT depthFormat);
37
DXGI_FORMAT GetDepthSRVFormat(DXGI_FORMAT depthFormat);
38
39
ID3D11DepthStencilView*
mDSView
;
40
};
41
42
inline
ID3D11DepthStencilView*
DX11TextureDS::GetDSView
()
const
43
{
44
return
mDSView;
45
}
46
47
}
GteDX11Texture2.h
name
GLuint const GLchar * name
Definition:
glcorearb.h:781
gte::DX11TextureDS
Definition:
GteDX11TextureDS.h:16
gte::GraphicsObject
Definition:
GteGraphicsObject.h:115
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:809
gte
Definition:
GLX/GteWICFileIO.h:16
texture
GLuint texture
Definition:
glcorearb.h:410
GteTextureDS.h
gte::DX11Texture2
Definition:
GteDX11Texture2.h:16
gte::TextureDS
Definition:
GteTextureDS.h:15
gte::DX11TextureDS::mDSView
ID3D11DepthStencilView * mDSView
Definition:
GteDX11TextureDS.h:39
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
gte::DX11TextureDS::GetDSView
ID3D11DepthStencilView * GetDSView() const
Definition:
GteDX11TextureDS.h:42
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59