GteDX11TextureRT.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/GteTextureRT.h>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // Construction and destruction.
20  virtual ~DX11TextureRT();
21  DX11TextureRT(ID3D11Device* device, TextureRT const* texture);
22  DX11TextureRT(ID3D11Device* device, DX11TextureRT const* dxSharedTexture);
23  static std::shared_ptr<GEObject> Create(void* device, GraphicsObject const* object);
24 
25  // Member access.
26  inline ID3D11RenderTargetView* GetRTView() 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 CreateRTView(ID3D11Device* device, D3D11_TEXTURE2D_DESC const& tx);
35 
36  ID3D11RenderTargetView* mRTView;
37 };
38 
39 inline ID3D11RenderTargetView* DX11TextureRT::GetRTView() const
40 {
41  return mRTView;
42 }
43 
44 }
ID3D11RenderTargetView * GetRTView() const
GLuint const GLchar * name
Definition: glcorearb.h:781
ID3D11RenderTargetView * mRTView
GLsizei const GLchar *const * string
Definition: glcorearb.h:809
GLuint texture
Definition: glcorearb.h:410
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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