Skip to content

experiment for HLE D3DDevice_DrawRectPatch()#2436

Draft
jackchentwkh wants to merge 2 commits into
Cxbx-Reloaded:masterfrom
jackchentwkh:HLE_DrawRectPatch_test
Draft

experiment for HLE D3DDevice_DrawRectPatch()#2436
jackchentwkh wants to merge 2 commits into
Cxbx-Reloaded:masterfrom
jackchentwkh:HLE_DrawRectPatch_test

Conversation

@jackchentwkh
Copy link
Copy Markdown
Contributor

this is a draft to share my experiment with D3DDevice_DrawRectPatch()
to make D3DDevice_DrawRectPatch() run correctly, a vertex shader/vertex format and stream source/vertex buffer must be setup prior to calling it.
d3d9 seems unhappy when pRectPatchInfo == nullptr. so I implement a map cache and retrieve pRectPatchInfo with handle when pRectPatchInfo passed in was nullptr.
the returned hRet is S_OK, but there is no rendering output at all. maybe someone can pick from here and find the solution for it.

@github-actions github-actions Bot added HLE High Level Emulation graphics GPU and/or game graphics related labels Oct 5, 2023
@jackchentwkh
Copy link
Copy Markdown
Contributor Author

try to convert RectPatch to indexed triangle strips. result looks ok, but the mesh is in low order.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

graphics GPU and/or game graphics related HLE High Level Emulation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants