mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 02:25:46 -04:00
Add precompiled versions of D3D11 display shaders
This commit is contained in:
13
src/frontend-common/display_vs.hlsl
Normal file
13
src/frontend-common/display_vs.hlsl
Normal file
@ -0,0 +1,13 @@
|
||||
cbuffer UBOBlock : register(b0)
|
||||
{
|
||||
float4 u_src_rect;
|
||||
};
|
||||
|
||||
void main(in uint vertex_id : SV_VertexID,
|
||||
out float2 v_tex0 : TEXCOORD0,
|
||||
out float4 o_pos : SV_Position)
|
||||
{
|
||||
float2 pos = float2(float((vertex_id << 1) & 2u), float(vertex_id & 2u));
|
||||
v_tex0 = u_src_rect.xy + pos * u_src_rect.zw;
|
||||
o_pos = float4(pos * float2(2.0f, -2.0f) + float2(-1.0f, 1.0f), 0.0f, 1.0f);
|
||||
}
|
Reference in New Issue
Block a user