1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 01:24:11 +01:00

[d3d8] Adjust ValidatePixel/VertexShader error return

This commit is contained in:
WinterSnowfall 2024-10-16 13:52:34 +03:00 committed by Robin Kertels
parent 27ceecfad9
commit b38c6b4dc2

View File

@ -15,37 +15,37 @@ namespace dxvk {
extern "C" {
DLLEXPORT HRESULT __stdcall ValidatePixelShader(
const DWORD* pixelshader,
const D3DCAPS8* caps,
BOOL boolValue,
char** errorString) {
const DWORD* pPixelShader,
const D3DCAPS8* pCaps,
BOOL errorReturn,
char** pErrorString) {
dxvk::Logger::warn("D3D8: ValidatePixelShader: Stub");
if (unlikely(pixelshader == nullptr))
if (unlikely(pPixelShader == nullptr))
return E_FAIL;
if (likely(errorString != nullptr)) {
if (errorReturn && pErrorString != nullptr) {
const char* errorMessage = "";
*errorString = (char *) errorMessage;
*pErrorString = (char *) errorMessage;
}
return S_OK;
}
DLLEXPORT HRESULT __stdcall ValidateVertexShader(
const DWORD* vertexShader,
const DWORD* vertexDecl,
const D3DCAPS8* caps,
BOOL boolValue,
char** errorString) {
const DWORD* pVertexShader,
const DWORD* pVertexDecl,
const D3DCAPS8* pCaps,
BOOL errorReturn,
char** pErrorString) {
dxvk::Logger::warn("D3D8: ValidateVertexShader: Stub");
if (unlikely(vertexShader == nullptr))
if (unlikely(pVertexShader == nullptr))
return E_FAIL;
if (likely(errorString != nullptr)) {
if (errorReturn && pErrorString != nullptr) {
const char* errorMessage = "";
*errorString = (char *) errorMessage;
*pErrorString = (char *) errorMessage;
}
return S_OK;