From 75a939a7ddd5078e98688e98d3611415823951e5 Mon Sep 17 00:00:00 2001 From: jarupxx Date: Sun, 19 Nov 2017 16:14:33 +0900 Subject: [PATCH] Add implementation of SetVertexShaderConstant1Fast --- src/CxbxKrnl/EmuD3D8.cpp | 18 ++++++++++++++++++ src/CxbxKrnl/EmuD3D8.h | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/src/CxbxKrnl/EmuD3D8.cpp b/src/CxbxKrnl/EmuD3D8.cpp index 561bf2155..777d43458 100644 --- a/src/CxbxKrnl/EmuD3D8.cpp +++ b/src/CxbxKrnl/EmuD3D8.cpp @@ -3647,6 +3647,24 @@ VOID __fastcall XTL::EMUPATCH(D3DDevice_SetVertexShaderConstant1) EMUPATCH(D3DDevice_SetVertexShaderConstant)(Register, pConstantData, 1); } +// ****************************************************************** +// * patch: D3DDevice_SetVertexShaderConstant1Fast +// ****************************************************************** +VOID __fastcall XTL::EMUPATCH(D3DDevice_SetVertexShaderConstant1Fast) +( + INT Register, + CONST PVOID pConstantData +) +{ + FUNC_EXPORTS + + LOG_FORWARD("D3DDevice_SetVertexShaderConstant"); + + // Redirect to the standard version. + + EMUPATCH(D3DDevice_SetVertexShaderConstant)(Register, pConstantData, 1); +} + // ****************************************************************** // * patch: D3DDevice_SetVertexShaderConstant4 // ****************************************************************** diff --git a/src/CxbxKrnl/EmuD3D8.h b/src/CxbxKrnl/EmuD3D8.h index 6316df516..3ed9017c8 100644 --- a/src/CxbxKrnl/EmuD3D8.h +++ b/src/CxbxKrnl/EmuD3D8.h @@ -408,6 +408,15 @@ VOID __fastcall EMUPATCH(D3DDevice_SetVertexShaderConstant1) CONST PVOID pConstantData ); +// ****************************************************************** +// * patch: D3DDevice_SetVertexShaderConstant1Fast +// ****************************************************************** +VOID __fastcall EMUPATCH(D3DDevice_SetVertexShaderConstant1Fast) +( + INT Register, + CONST PVOID pConstantData +); + // ****************************************************************** // * patch: D3DDevice_SetVertexShaderConstant4 // ******************************************************************