Files
cool-source-archive/public/shaderapi/ishaderconstantbuffer.h
Totterynine 2773eae4d7 shaderapidx11
use -dxlevel 110 to use it
2021-09-22 18:56:56 +05:00

20 lines
440 B
C++

#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;
};