This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
@@ -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);
}
}