Repository navigation
refactor: Replace D3DXGetErrorStringA and D3DXGetFVFVertexSize with local implementations - #3649
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. WalkthroughThe changes add FVF-based vertex-size calculation and use it in two HeightMap stream setups. They also map selected DX8 error codes to symbolic names for error logging and debug draw validation. ChangesFVF Vertex Sizing
DX8 HRESULT Logging
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Possibly related PRs
Suggested reviewers: Merge Risk:
|
[Medium impact] The changes since the previous review appear safe to merge.
|
xezon
left a comment
There was a problem hiding this comment.
Looks reasonable. I assume Get_FVF_Vertex_Size is complete, but do not know.
|
Do you want to have this merged as 3 commits or squashed? Maybe the title needs some polishing? |
|
Squash is fine, the last two commits are review fixups. |
Log_DX8_ErrorCodeandNon_Fatal_Log_DX8_ErrorCodeuseD3DXGetErrorStringAto describe a failed call, andFVFInfoClassusesD3DXGetFVFVertexSizefor the vertex size. Both pull in D3DX, which MinGW does not provide.Now a local lookup logs the error code by name and hex value. It also replaces the hand-written switch after
ValidateDeviceinDX8Wrapper::Draw. The staticFVFInfoClass::Get_FVF_Vertex_Sizecomputes the size from the FVF bits. The twoPRE_TRANSFORM_VERTEXcalls inHeightMap.cpp, which are compiled out, call it directly.Todo: