mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-21 13:29:26 +01:00
[d3d8] Stub ValidatePixelShader and ValidateVertexShader
This commit is contained in:
parent
66bd9ec4dd
commit
1689cacc47
@ -1,3 +1,6 @@
|
|||||||
LIBRARY D3D8.DLL
|
LIBRARY D3D8.DLL
|
||||||
EXPORTS
|
EXPORTS
|
||||||
|
ValidatePixelShader @ 2
|
||||||
|
ValidateVertexShader @ 3
|
||||||
|
|
||||||
Direct3DCreate8 @ 5
|
Direct3DCreate8 @ 5
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
global:
|
global:
|
||||||
|
ValidatePixelShader;
|
||||||
|
ValidateVertexShader;
|
||||||
Direct3DCreate8;
|
Direct3DCreate8;
|
||||||
|
|
||||||
local:
|
local:
|
||||||
|
@ -13,6 +13,44 @@ 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) {
|
DLLEXPORT IDirect3D8* __stdcall Direct3DCreate8(UINT nSDKVersion) {
|
||||||
dxvk::Logger::trace("Direct3DCreate8 called");
|
dxvk::Logger::trace("Direct3DCreate8 called");
|
||||||
|
|
||||||
@ -21,4 +59,5 @@ extern "C" {
|
|||||||
|
|
||||||
return pDirect3D;
|
return pDirect3D;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user