mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d8] Stub ValidatePixelShader and ValidateVertexShader
This commit is contained in:
parent
66bd9ec4dd
commit
1689cacc47
@ -1,3 +1,6 @@
|
||||
LIBRARY D3D8.DLL
|
||||
EXPORTS
|
||||
ValidatePixelShader @ 2
|
||||
ValidateVertexShader @ 3
|
||||
|
||||
Direct3DCreate8 @ 5
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
global:
|
||||
ValidatePixelShader;
|
||||
ValidateVertexShader;
|
||||
Direct3DCreate8;
|
||||
|
||||
local:
|
||||
|
@ -12,7 +12,45 @@ namespace dxvk {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
extern "C" {
|
||||
|
||||
DLLEXPORT HRESULT __stdcall ValidatePixelShader(
|
||||
const DWORD* pixelshader,
|
||||
const D3DCAPS8* caps,
|
||||
BOOL boolValue,
|
||||
char** errorString) {
|
||||
dxvk::Logger::warn("D3D8: ValidatePixelShader: Stub");
|
||||
|
||||
if (unlikely(pixelshader == nullptr))
|
||||
return E_FAIL;
|
||||
|
||||
if (likely(errorString != nullptr)) {
|
||||
const char* errorMessage = "";
|
||||
*errorString = (char *) errorMessage;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
DLLEXPORT HRESULT __stdcall ValidateVertexShader(
|
||||
const DWORD* vertexShader,
|
||||
const DWORD* vertexDecl,
|
||||
const D3DCAPS8* caps,
|
||||
BOOL boolValue,
|
||||
char** errorString) {
|
||||
dxvk::Logger::warn("D3D8: ValidateVertexShader: Stub");
|
||||
|
||||
if (unlikely(vertexShader == nullptr))
|
||||
return E_FAIL;
|
||||
|
||||
if (likely(errorString != nullptr)) {
|
||||
const char* errorMessage = "";
|
||||
*errorString = (char *) errorMessage;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
DLLEXPORT IDirect3D8* __stdcall Direct3DCreate8(UINT nSDKVersion) {
|
||||
dxvk::Logger::trace("Direct3DCreate8 called");
|
||||
|
||||
@ -21,4 +59,5 @@ extern "C" {
|
||||
|
||||
return pDirect3D;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user