Skip to content

Commit

Permalink
[d3d8] Stub CreatePixelShader & CreateVertexShader
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Feb 23, 2023
1 parent 7228eb4 commit c2c1bb0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/d3d8/d3d8_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,14 @@ namespace dxvk {
DWORD Flags);


HRESULT STDMETHODCALLTYPE CreateVertexShader D3D8_DEVICE_STUB(
HRESULT STDMETHODCALLTYPE CreateVertexShader(
const DWORD* pDeclaration,
const DWORD* pFunction,
DWORD* pHandle,
DWORD Usage);
DWORD Usage) {
Logger::warn("D3D8DeviceEx::CreateVertexShader: STUB !");
return D3D_OK;
}

HRESULT STDMETHODCALLTYPE SetVertexShader(DWORD Handle) {
// TODO: determine if Handle is an FVF or a shader ptr
Expand Down Expand Up @@ -604,9 +607,12 @@ namespace dxvk {
IDirect3DIndexBuffer8** ppIndexData,
UINT* pBaseVertexIndex);

HRESULT STDMETHODCALLTYPE CreatePixelShader D3D8_DEVICE_STUB(
HRESULT STDMETHODCALLTYPE CreatePixelShader(
const DWORD* pFunction,
DWORD* pHandle);
DWORD* pHandle) {
Logger::warn("D3D8DeviceEx::CreatePixelShader: STUB !");
return D3D_OK;
}

HRESULT STDMETHODCALLTYPE SetPixelShader D3D8_DEVICE_STUB(DWORD Handle);
HRESULT STDMETHODCALLTYPE SetPixelShader D3D8_DEVICE_STUB(DWORD* pHandle);
Expand Down

0 comments on commit c2c1bb0

Please sign in to comment.