12 lines
301 B
C++
12 lines
301 B
C++
#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);
|
|
}
|
|
} |