Open n0wonmai opened 4 months ago
Does the sample work for you?
@KN4CK3R is there any dx11 sample? If you mean dx9, no i didn't try
Btw seems like D3DX11CompileFromMemory
and D3DX11CreateEffectFromMemory
functions are deprecated for now, you should compile shaders instead, e.g:
static const char* vertexShader =
"cbuffer vertexBuffer : register(b0) \
{\
float4x4 ProjectionMatrix; \
};\
struct VS_INPUT\
{\
float2 pos : POSITION;\
float4 col : COLOR0;\
float2 uv : TEXCOORD0;\
};\
\
struct PS_INPUT\
{\
float4 pos : SV_POSITION;\
float4 col : COLOR0;\
float2 uv : TEXCOORD0;\
};\
\
PS_INPUT main(VS_INPUT input)\
{\
PS_INPUT output;\
output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\
output.col = input.col;\
output.uv = input.uv;\
return output;\
}";
D3DCompile(vertexShader, strlen(vertexShader), NULL, NULL, NULL, "main", "vs_4_0", 0, 0, &g_pVertexShaderBlob, NULL);
Didn't try this with OSHGui but with other custom-gui app it works fine
So, i have added some debug messages to understand what goes wrong when injecting the DLL
Direct3D11Renderer.cpp:
Getting message with "No such interface supported" error. What can be the issue?
IDE: VS2019 DXSDK: Microsoft DirectX SDK (June 2010) Platform: Win11x64