shaderapidx11

use -dxlevel 110 to use it
This commit is contained in:
Totterynine
2021-09-22 18:56:56 +05:00
parent 3c359ed509
commit 2773eae4d7
201 changed files with 44561 additions and 78 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include "IShaderDevice.h"
class IShaderConstantBuffer
{
public:
virtual void Create( size_t nBufferSize, bool bDynamic = true ) = 0;
virtual void Update( void *pNewData ) = 0;
virtual void Destroy() = 0;
virtual ConstantBufferHandle_t GetBuffer() const = 0;
// Do we need to update the data to the graphics card?
virtual bool NeedsUpdate() const = 0;
virtual void UploadToGPU() = 0;
//virtual void Bind() = 0;
};