Allow merging this code by NOT switching over to new pixel shader code yet (it requires more work before this can be enabled).
This commit is contained in:
parent
09872bf16d
commit
7cbdd7b430
|
@ -3716,22 +3716,17 @@ HRESULT WINAPI XTL::EMUPATCH(D3DDevice_CreatePixelShader)
|
|||
LOG_FUNC_END;
|
||||
|
||||
HRESULT hRet = E_FAIL;
|
||||
DWORD* pFunction = NULL;
|
||||
LPD3DXBUFFER pRecompiledBuffer = NULL;
|
||||
// DWORD Handle = 0;
|
||||
|
||||
#if 1 // PatrickvL Dxbx pixel shader translation
|
||||
pFunction = (DWORD*)pPSDef;
|
||||
#if 0 // PatrickvL Dxbx pixel shader translation
|
||||
|
||||
// Attempt to recompile PixelShader
|
||||
hRet = DxbxUpdateActivePixelShader(pPSDef, pHandle);
|
||||
|
||||
// redirect to windows d3d
|
||||
DEBUG_D3DRESULT(hRet, "g_pD3DDevice8->CreatePixelShader");
|
||||
|
||||
#endif
|
||||
#if 1 // Kingofc's pixel shader translation
|
||||
DWORD* pFunction = NULL;
|
||||
LPD3DXBUFFER pRecompiledBuffer = NULL;
|
||||
|
||||
#if 0 // Kingofc's pixel shader translation
|
||||
hRet = CreatePixelShaderFunction(pPSDef, &pRecompiledBuffer);
|
||||
DEBUG_D3DRESULT(hRet, "CreatePixelShaderFunction");
|
||||
|
||||
|
@ -3762,14 +3757,15 @@ HRESULT WINAPI XTL::EMUPATCH(D3DDevice_CreatePixelShader)
|
|||
|
||||
memcpy(&pPixelShader->PSDef, pPSDef, sizeof(X_D3DPIXELSHADERDEF));
|
||||
|
||||
DWORD Handle = 0; // ??
|
||||
pPixelShader->Handle = Handle;
|
||||
pPixelShader->dwStatus = hRet;
|
||||
*pHandle = (DWORD)pPixelShader;
|
||||
*/
|
||||
#endif
|
||||
|
||||
#if 0 // Older Cxbx pixel shader translation
|
||||
// ================================================================
|
||||
DWORD* pFunction = NULL;
|
||||
|
||||
pFunction = (DWORD*) pPSDef;
|
||||
|
||||
// Attempt to recompile PixelShader
|
||||
|
@ -3782,8 +3778,6 @@ HRESULT WINAPI XTL::EMUPATCH(D3DDevice_CreatePixelShader)
|
|||
pHandle
|
||||
);
|
||||
DEBUG_D3DRESULT(hRet, "g_pD3DDevice8->CreatePixelShader");
|
||||
|
||||
// ================================================================
|
||||
#endif
|
||||
|
||||
if(FAILED(hRet))
|
||||
|
|
|
@ -2138,7 +2138,7 @@ std::string PSH_XBOX_SHADER::DecodedToString(XTL::X_D3DPIXELSHADERDEF *pPSDef)
|
|||
_AddStr(DxbxFormat(aStr, Args)); \
|
||||
}
|
||||
{
|
||||
int i;
|
||||
// int i;
|
||||
|
||||
std::string Result = "";
|
||||
// Show the contents to the user
|
||||
|
|
Loading…
Reference in New Issue