GteDX11RawBuffer.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/GteRawBuffer.h>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // Construction and destruction.
20  virtual ~DX11RawBuffer();
21  DX11RawBuffer(ID3D11Device* device, RawBuffer const* rbuffer);
22  static std::shared_ptr<GEObject> Create(void* device, GraphicsObject const* object);
23 
24  // Member access.
25  inline RawBuffer* GetRawBuffer() const;
26  inline ID3D11ShaderResourceView* GetSRView() const;
27  inline ID3D11UnorderedAccessView* GetUAView() const;
28 
29  // Support for the DX11 debug layer; see comments in the file
30  // GteDX11GraphicsObject.h about usage.
31  virtual void SetName(std::string const& name);
32 
33 private:
34  // Support for construction.
35  void CreateSRView(ID3D11Device* device);
36  void CreateUAView(ID3D11Device* device);
37 
38  ID3D11ShaderResourceView* mSRView;
39  ID3D11UnorderedAccessView* mUAView;
40 };
41 
43 {
44  return static_cast<RawBuffer*>(mGTObject);
45 }
46 
47 inline ID3D11ShaderResourceView* DX11RawBuffer::GetSRView() const
48 {
49  return mSRView;
50 }
51 
52 inline ID3D11UnorderedAccessView* DX11RawBuffer::GetUAView() const
53 {
54  return mUAView;
55 }
56 
57 }
ID3D11UnorderedAccessView * mUAView
ID3D11ShaderResourceView * mSRView
GLuint const GLchar * name
Definition: glcorearb.h:781
ID3D11ShaderResourceView * GetSRView() const
RawBuffer * GetRawBuffer() const
GLsizei const GLchar *const * string
Definition: glcorearb.h:809
ID3D11UnorderedAccessView * GetUAView() const
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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