meta: Add vert/frag shaders for fullscreen swapchain pass.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
8dcf06dff2
commit
071e39d6e6
|
@ -17,6 +17,9 @@ vkd3d_shaders =[
|
|||
'shaders/gs_fullscreen.geom',
|
||||
'shaders/vs_fullscreen.vert',
|
||||
'shaders/vs_fullscreen_layer.vert',
|
||||
|
||||
'shaders/vs_swapchain_fullscreen.vert',
|
||||
'shaders/fs_swapchain_fullscreen.frag',
|
||||
]
|
||||
|
||||
vkd3d_src = [
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
layout(location = 0) in vec2 vUV;
|
||||
layout(set = 0, binding = 0) uniform sampler2D Tex;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = textureLod(Tex, vUV, 0.0);
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) out vec2 vUV;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(
|
||||
float(gl_VertexIndex & 1) * 4.0f - 1.0f,
|
||||
float(gl_VertexIndex & 2) * 2.0f - 1.0f,
|
||||
0.0f, 1.0f);
|
||||
vUV = gl_Position.xy * 0.5 + 0.5;
|
||||
}
|
|
@ -44,5 +44,7 @@ enum vkd3d_meta_copy_mode
|
|||
#include <vs_fullscreen.h>
|
||||
#include <gs_fullscreen.h>
|
||||
#include <fs_copy_image_float.h>
|
||||
#include <vs_swapchain_fullscreen.h>
|
||||
#include <fs_swapchain_fullscreen.h>
|
||||
|
||||
#endif /* __VKD3D_SPV_SHADERS_H */
|
||||
|
|
Loading…
Reference in New Issue