minor fixes (whitespace, comments, names)

This commit is contained in:
Adam Jensen 2022-11-13 01:31:17 +00:00
parent 844a781478
commit 702402b4f7
3 changed files with 9 additions and 9 deletions

View File

@ -79,9 +79,9 @@ struct RenderLightData {
void render2(void*, void*);
};
// PCDX11LightSet
struct LightReceiverData {
uint8_t byte0;
uint8_t pad[3];
LightReceiverData *nextMaybe;
uint16_t word4;
uint16_t word6;
RenderLightData *dword8[16];

View File

@ -364,13 +364,13 @@ void PCDX11ModelDrawable::buildAndAssignLightBuffer(
PCDX11StateManager *stateManager)
{
auto lightManager = static_cast<PCDX11LightManager*>(renderModel->renderDevice->lightManager);
// if (lightManager->lightDataX_E10 != lightReceiverData)
lightManager->fillLightBuffer(lightReceiverData);
// if (lightManager->lightDataX_E10 != lightReceiverData)
lightManager->fillLightBuffer(lightReceiverData);
if (lightConstantBufferData) {
// if (lightManager->mostRecentAssignmentToCommonCB5 != lightConstantBufferData)
lightManager->assignCommonCB5((char*)lightConstantBufferData);
}
if (lightConstantBufferData) {
// if (lightManager->mostRecentAssignmentToCommonCB5 != lightConstantBufferData)
lightManager->assignCommonCB5((char*)lightConstantBufferData);
}
}
}

View File

@ -39,7 +39,7 @@ struct RenderPasses { // = cdc::RenderPassData
uint32_t requestedPassesScene[33]; // = m_sceneExecutionList
uint32_t requestedPassesShadow[33]; // = m_shadowExecutionList
uint32_t dword408[3]; // = m_bitMasks
uint32_t depthSortedPasses;
uint32_t depthSortedPasses; // 414
uint32_t activeFuncBitfield; // 418 = m_drawableTypes
CompareFunctionSet comparators[20]; // 41C
RenderFunctionSet drawers[20]; // 91C