chore(gx): rename CGxFormat::sampleCount to CGxFormat::multisampleCount

This commit is contained in:
fallenoak 2025-11-16 21:35:34 -06:00
parent 53929a233e
commit 610d45c322
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class CGxFormat {
int32_t maximize; int32_t maximize;
Format depthFormat; Format depthFormat;
C2iVector size; C2iVector size;
uint32_t sampleCount; uint32_t multisampleCount;
Format colorFormat; Format colorFormat;
uint32_t refreshRate; uint32_t refreshRate;
uint32_t vsync; uint32_t vsync;

View File

@ -1376,10 +1376,10 @@ void CGxDeviceD3d::ISetPresentParms(D3DPRESENT_PARAMETERS& d3dpp, const CGxForma
break; break;
} }
if (format.sampleCount <= 1) { if (format.multisampleCount <= 1) {
d3dpp.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER; d3dpp.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
} else { } else {
d3dpp.MultiSampleType = static_cast<D3DMULTISAMPLE_TYPE>(format.sampleCount); d3dpp.MultiSampleType = static_cast<D3DMULTISAMPLE_TYPE>(format.multisampleCount);
// TODO MultiSampleQuality // TODO MultiSampleQuality
} }

View File

@ -313,7 +313,7 @@ int32_t CGxDeviceGLL::DeviceSetFormat(const CGxFormat& format) {
format.refreshRate, format.refreshRate,
v7, v7,
format.window ^ 1, format.window ^ 1,
format.sampleCount format.multisampleCount
); );
OsInputPostEvent(OS_INPUT_SIZE, v15.right - v15.left, v15.bottom - v15.top, 0, 0); OsInputPostEvent(OS_INPUT_SIZE, v15.right - v15.left, v15.bottom - v15.top, 0, 0);