mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 00:48:44 +01:00
54ed8f0bb0
Co-authored-by: Philip Rebohle <philip.rebohle@tu-dortmund.de> Co-authored-by: Robin Kertels <robin.kertels@gmail.com> Co-authored-by: pchome <pchome@users.noreply.github.com> Co-authored-by: Christopher Egert <cme3000@gmail.com> Co-authored-by: Derek Lesho <dereklesho52@Gmail.com> Co-authored-by: Luis Cáceres <lacaceres97@gmail.com> Co-authored-by: Nelson Chen <crazysim@gmail.com> Co-authored-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> Co-authored-by: Riesi <riesi@opentrash.com> Co-authored-by: gbMichelle <gbmichelle.dev@gmail.com>
68 lines
1.4 KiB
C++
68 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "d3d9_include.h"
|
|
|
|
namespace dxvk {
|
|
|
|
class IDirect3DShaderValidator9 : public IUnknown {
|
|
|
|
public:
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE Begin(
|
|
void* pCallback,
|
|
void* pUserParam,
|
|
DWORD Unknown) = 0;
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE Instruction(
|
|
const char* pUnknown1,
|
|
UINT Unknown2,
|
|
const DWORD* pInstruction,
|
|
DWORD InstructionLength) = 0;
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE End() = 0;
|
|
|
|
};
|
|
|
|
class D3D9ShaderValidator final : public ComObjectClamp<IDirect3DShaderValidator9> {
|
|
|
|
public:
|
|
|
|
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) {
|
|
if (ppvObject == nullptr)
|
|
return E_POINTER;
|
|
|
|
*ppvObject = ref(this);
|
|
return S_OK;
|
|
}
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE Begin(
|
|
void* pCallback,
|
|
void* pUserParam,
|
|
DWORD Unknown) {
|
|
Logger::debug("D3D9ShaderValidator::Begin: Stub");
|
|
|
|
return D3D_OK;
|
|
}
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE Instruction(
|
|
const char* pUnknown1,
|
|
UINT Unknown2,
|
|
const DWORD* pInstruction,
|
|
DWORD InstructionLength) {
|
|
Logger::debug("D3D9ShaderValidator::Instruction: Stub");
|
|
|
|
return D3D_OK;
|
|
}
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE End() {
|
|
Logger::debug("D3D9ShaderValidator::End: Stub");
|
|
|
|
return D3D_OK;
|
|
}
|
|
|
|
};
|
|
|
|
} |