mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(gx): implement CGxDevice::BufData
This commit is contained in:
parent
5ccf980c23
commit
da23578002
6 changed files with 24 additions and 0 deletions
|
|
@ -394,6 +394,14 @@ int32_t CGxDeviceD3d::BufUnlock(CGxBuf* buf, uint32_t size) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::BufData(CGxBuf* buf, const void* data, size_t size, uintptr_t offset) {
|
||||
CGxDevice::BufData(buf, data, size, offset);
|
||||
|
||||
auto bufData = this->IBufLock(buf);
|
||||
memcpy(&bufData[offset], data, size);
|
||||
this->IBufUnlock(buf);
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::CapsWindowSize(CRect& dst) {
|
||||
dst = this->DeviceCurWindow();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue