# RePlayer **Repository Path**: stoneforestwhu/replayer ## Basic Information - **Project Name**: RePlayer - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-15 - **Last Updated**: 2024-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # qReplay qReplay is the tool to replay GL & DX & Vulkan scripts; Please run "qReplay.exe -h" to see the command line options; To run vulkan script, you need copy ./doc/qReplay.ini to C:/ or the same folder with qReplay.exe; Note 1、解析非API指令的函数:RP_ERRRP_Lang::ReadPtrDataInFile(RP_Ptr&rpPtr,size_tnum,constchar*fileNameFirst,constchar*fileNameLast) 比如 `char prog_code_0[-1] = file(prog_code_0.txt);` 2、解析API指令: ` case RP_OP_TYPE_CL: { if (!pExec->m_bInitCLApi) { rpr = pExec->m_CL.InitAddr(pCore); pExec->m_bInitCLApi = RP_TRUE; } if (rpr == RP_ERR_SUCCESS) { rpr = RP_EXEC_CUR_INS(); if (rpr != RP_ERR_SUCCESS && rpr != RP_ERR_FAIL) { char tmpBuf[256]; sprintf(tmpBuf, "runtime error: 0x%x ", (uint32_t)rpr); const char* errStr = RP_Util::GetErrStr_CL((cl_int)rpr); if (errStr) { strcat(tmpBuf, errStr); } return pCore->SetErr(RP_ERR_RUNTIME_ERROR, tmpBuf, pExec->m_pCurIns->GetOpName()); } }` ` break; }`