GteDX11VertexShader.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  DX11VertexShader(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 "VS" embedded in their names.
24 
25  // Calls to ID3D11DeviceContext::VSSetShader.
26  virtual void Enable(ID3D11DeviceContext* context) override;
27  virtual void Disable(ID3D11DeviceContext* context) override;
28 
29  // Calls to ID3D11DeviceContext::VSSetConstantBuffers.
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::VSSetShaderResources.
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  // Unordered access views are supported in vertex shaders starting
42  // with D3D11.1.
43  virtual void EnableUAView(ID3D11DeviceContext* context,
44  unsigned int bindPoint, ID3D11UnorderedAccessView* uaView,
45  unsigned int initialCount) override;
46  virtual void DisableUAView(ID3D11DeviceContext* context,
47  unsigned int bindPoint) override;
48 
49  // Calls to ID3D11DeviceContext::VSSetSamplers.
50  virtual void EnableSampler(ID3D11DeviceContext* context,
51  unsigned int bindPoint, ID3D11SamplerState* state) override;
52  virtual void DisableSampler(ID3D11DeviceContext* context,
53  unsigned int bindPoint) override;
54 };
55 
56 }
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