mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
D3D11HostDisplay: Make screenshots/display rendering opaque
This commit is contained in:
parent
ad59cf6974
commit
e6383286d9
|
@ -4,5 +4,5 @@ SamplerState samp0_ss : register(s0);
|
||||||
void main(in float2 v_tex0 : TEXCOORD0,
|
void main(in float2 v_tex0 : TEXCOORD0,
|
||||||
out float4 o_col0 : SV_Target)
|
out float4 o_col0 : SV_Target)
|
||||||
{
|
{
|
||||||
o_col0 = samp0.Sample(samp0_ss, v_tex0);
|
o_col0 = float4(samp0.Sample(samp0_ss, v_tex0).rgb, 1.0);
|
||||||
}
|
}
|
|
@ -30,22 +30,25 @@ dcl_sampler s0, mode_default
|
||||||
dcl_resource_texture2d (float,float,float,float) t0
|
dcl_resource_texture2d (float,float,float,float) t0
|
||||||
dcl_input_ps linear v0.xy
|
dcl_input_ps linear v0.xy
|
||||||
dcl_output o0.xyzw
|
dcl_output o0.xyzw
|
||||||
sample o0.xyzw, v0.xyxx, t0.xyzw, s0
|
dcl_temps 1
|
||||||
|
sample r0.xyzw, v0.xyxx, t0.xyzw, s0
|
||||||
|
mov o0.xyz, r0.xyzx
|
||||||
|
mov o0.w, l(1.000000)
|
||||||
ret
|
ret
|
||||||
// Approximately 2 instruction slots used
|
// Approximately 4 instruction slots used
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const BYTE static s_display_ps_bytecode[] =
|
const BYTE static s_display_ps_bytecode[] =
|
||||||
{
|
{
|
||||||
68, 88, 66, 67, 140, 134,
|
68, 88, 66, 67, 192, 215,
|
||||||
46, 29, 68, 36, 193, 23,
|
150, 96, 210, 93, 209, 128,
|
||||||
94, 171, 102, 123, 183, 66,
|
113, 254, 100, 56, 49, 113,
|
||||||
19, 177, 1, 0, 0, 0,
|
128, 72, 1, 0, 0, 0,
|
||||||
32, 2, 0, 0, 5, 0,
|
80, 2, 0, 0, 5, 0,
|
||||||
0, 0, 52, 0, 0, 0,
|
0, 0, 52, 0, 0, 0,
|
||||||
208, 0, 0, 0, 4, 1,
|
208, 0, 0, 0, 4, 1,
|
||||||
0, 0, 56, 1, 0, 0,
|
0, 0, 56, 1, 0, 0,
|
||||||
164, 1, 0, 0, 82, 68,
|
212, 1, 0, 0, 82, 68,
|
||||||
69, 70, 148, 0, 0, 0,
|
69, 70, 148, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 2, 0, 0, 0,
|
0, 0, 2, 0, 0, 0,
|
||||||
|
@ -89,9 +92,9 @@ const BYTE static s_display_ps_bytecode[] =
|
||||||
0, 0, 15, 0, 0, 0,
|
0, 0, 15, 0, 0, 0,
|
||||||
83, 86, 95, 84, 97, 114,
|
83, 86, 95, 84, 97, 114,
|
||||||
103, 101, 116, 0, 171, 171,
|
103, 101, 116, 0, 171, 171,
|
||||||
83, 72, 68, 82, 100, 0,
|
83, 72, 68, 82, 148, 0,
|
||||||
0, 0, 64, 0, 0, 0,
|
0, 0, 64, 0, 0, 0,
|
||||||
25, 0, 0, 0, 90, 0,
|
37, 0, 0, 0, 90, 0,
|
||||||
0, 3, 0, 96, 16, 0,
|
0, 3, 0, 96, 16, 0,
|
||||||
0, 0, 0, 0, 88, 24,
|
0, 0, 0, 0, 88, 24,
|
||||||
0, 4, 0, 112, 16, 0,
|
0, 4, 0, 112, 16, 0,
|
||||||
|
@ -100,16 +103,24 @@ const BYTE static s_display_ps_bytecode[] =
|
||||||
50, 16, 16, 0, 0, 0,
|
50, 16, 16, 0, 0, 0,
|
||||||
0, 0, 101, 0, 0, 3,
|
0, 0, 101, 0, 0, 3,
|
||||||
242, 32, 16, 0, 0, 0,
|
242, 32, 16, 0, 0, 0,
|
||||||
0, 0, 69, 0, 0, 9,
|
0, 0, 104, 0, 0, 2,
|
||||||
242, 32, 16, 0, 0, 0,
|
1, 0, 0, 0, 69, 0,
|
||||||
0, 0, 70, 16, 16, 0,
|
0, 9, 242, 0, 16, 0,
|
||||||
0, 0, 0, 0, 70, 126,
|
0, 0, 0, 0, 70, 16,
|
||||||
16, 0, 0, 0, 0, 0,
|
16, 0, 0, 0, 0, 0,
|
||||||
0, 96, 16, 0, 0, 0,
|
70, 126, 16, 0, 0, 0,
|
||||||
0, 0, 62, 0, 0, 1,
|
0, 0, 0, 96, 16, 0,
|
||||||
|
0, 0, 0, 0, 54, 0,
|
||||||
|
0, 5, 114, 32, 16, 0,
|
||||||
|
0, 0, 0, 0, 70, 2,
|
||||||
|
16, 0, 0, 0, 0, 0,
|
||||||
|
54, 0, 0, 5, 130, 32,
|
||||||
|
16, 0, 0, 0, 0, 0,
|
||||||
|
1, 64, 0, 0, 0, 0,
|
||||||
|
128, 63, 62, 0, 0, 1,
|
||||||
83, 84, 65, 84, 116, 0,
|
83, 84, 65, 84, 116, 0,
|
||||||
0, 0, 2, 0, 0, 0,
|
0, 0, 4, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
1, 0, 0, 0, 0, 0,
|
||||||
0, 0, 2, 0, 0, 0,
|
0, 0, 2, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
|
@ -121,7 +132,7 @@ const BYTE static s_display_ps_bytecode[] =
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
2, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0,
|
||||||
|
|
Loading…
Reference in a new issue