GteDX11ComputeShader.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>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // Construction.
20  DX11ComputeShader(ID3D11Device* device, Shader const* shader);
21  static std::shared_ptr<GEObject> Create(void* device, GraphicsObject const* object);
22 
23  // Overrides to hide DX11 functions that have "CS" embedded in their names.
24 
25  // Calls to ID3D11DeviceContext::CSSetShader.
26  virtual void Enable(ID3D11DeviceContext* context) override;
27  virtual void Disable(ID3D11DeviceContext* context) override;
28 
29  // Calls to ID3D11DeviceContext::CSSetConstantBuffers.
30  virtual void EnableCBuffer(ID3D11DeviceContext* context,
31  unsigned int bindPoint, ID3D11Buffer* buffer) override;
32  virtual void DisableCBuffer(ID3D11DeviceContext* context,
33  unsigned int bindPoint) override;
34 
35  // Calls to ID3D11DeviceContext::CSSetShaderResources.
36  virtual void EnableSRView(ID3D11DeviceContext* context,
37  unsigned int bindPoint, ID3D11ShaderResourceView* srView) override;
38  virtual void DisableSRView(ID3D11DeviceContext* context,
39  unsigned int bindPoint) override;
40 
41  // Calls to ID3D11DeviceContext::CSSetUnorderedAccessViews.
42  virtual void EnableUAView(ID3D11DeviceContext* context,
43  unsigned int bindPoint, ID3D11UnorderedAccessView* uaView,
44  unsigned int initialCount) override;
45  virtual void DisableUAView(ID3D11DeviceContext* context,
46  unsigned int bindPoint) override;
47 
48  // Calls to ID3D11DeviceContext::CSSetSamplers.
49  virtual void EnableSampler(ID3D11DeviceContext* context,
50  unsigned int bindPoint, ID3D11SamplerState* state) override;
51  virtual void DisableSampler(ID3D11DeviceContext* context,
52  unsigned int bindPoint) override;
53 };
54 
55 }
GLuint shader
Definition: glcorearb.h:780
GLuint buffer
Definition: glcorearb.h:655
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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