Files
LifeProject/LifeGraphics/render/dx11/IConstantBuffer11.cpp
T
2025-05-13 02:46:21 +03:00

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