*
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include "render/dx11/IConstantBuffer11.h"
|
||||
#include <stdio.h>
|
||||
|
||||
namespace LifeGraphics
|
||||
{
|
||||
void IConstantBuffer11::Update(void* pData, int dataLength)
|
||||
{
|
||||
context->Map(buffer,0, D3D11_MAP_WRITE_DISCARD, 0, &subresource);
|
||||
memcpy(subresource.pData, pData, dataLength);
|
||||
context->Unmap(buffer, 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user