mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
WIP: D3D11VA support
Overlays work, but drawing the actual video is unimplemented
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fxc /T vs_4_0_level_9_3 /Fo d3d11_vertex.fxc d3d11_vertex.hlsl
|
||||
|
||||
fxc /T ps_4_0_level_9_3 /Fo d3d11_overlay_pixel.fxc d3d11_overlay_pixel.hlsl
|
||||
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
Texture2D theTexture : register(t0);
|
||||
SamplerState theSampler : register(s0);
|
||||
|
||||
struct ShaderInput
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
float4 main(ShaderInput input) : SV_TARGET
|
||||
{
|
||||
return theTexture.Sample(theSampler, input.tex);
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
struct ShaderInput
|
||||
{
|
||||
float2 pos : POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct ShaderOutput
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
ShaderOutput main(ShaderInput input)
|
||||
{
|
||||
ShaderOutput output;
|
||||
output.pos = float4(input.pos, 0.0f, 1.0f);
|
||||
output.tex = input.tex;
|
||||
return output;
|
||||
}
|
||||
Reference in New Issue
Block a user