HatchitGraphics
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Hatchit::Graphics::DirectX::D3D11Shader Class Referenceabstract
Inheritance diagram for Hatchit::Graphics::DirectX::D3D11Shader:
IShader Hatchit::Graphics::DirectX::D3D11PixelShader Hatchit::Graphics::DirectX::D3D11VertexShader

Public Member Functions

 D3D11Shader (ID3D11Device *device, ID3D11DeviceContext *context)
 
bool VInitFromFile (Core::File *file) override
 
void VOnLoaded () override
 
bool VSetData (std::string name, const void *data, size_t size) override
 
bool VSetInt (std::string name, int data) override
 
bool VSetFloat (std::string name, float data) override
 
bool VSetFloat2 (std::string name, Math::Vector2 data) override
 
bool VSetFloat3 (std::string name, Math::Vector3 data) override
 
bool VSetFloat4 (std::string name, Math::Vector4 data) override
 
bool VSetMatrix3 (std::string name, Math::Matrix3 data) override
 
bool VSetMatrix4 (std::string name, Math::Matrix4 data) override
 
void Activate ()
 
void DeActivate ()
 

Protected Member Functions

ConstantBufferVariableFindVariable (std::string name, size_t size)
 
ConstantBufferFindBuffer (std::string name)
 
int32_t FindTextureBindIndex (std::string name)
 
int32_t FindSampleBindIndex (std::string name)
 
void UpdateAllBuffers ()
 
virtual void VBind ()=0
 
virtual void VUnbind ()=0
 
virtual bool VInitShader ()=0
 
virtual bool VSetShaderResourceView (std::string name, ID3D11ShaderResourceView *rv)=0
 
virtual bool VSetSamplerState (std::string name, ID3D11SamplerState *ss)=0
 

Protected Attributes

uint32_t m_constantBufferCount
 
ConstantBufferm_constantBufferArray
 
ConstantBufferVariableTable m_constantBufferVarTable
 
SampleTable m_sampleTable
 
TextureTable m_textureTable
 
ID3D11Device * m_device
 
ID3D11DeviceContext * m_context
 
ID3DBlob * m_blob
 
ID3D11ShaderReflection * m_reflection
 

The documentation for this class was generated from the following files: