MythTV master
mythvideoshadersvulkan.h
Go to the documentation of this file.
1#ifndef MYTHVIDEOSHADERSVULKAN_H
2#define MYTHVIDEOSHADERSVULKAN_H
3
4// MythTV
7
8#define VideoVertex450 (VK_SHADER_STAGE_VERTEX_BIT | (1 << 6))
9#define VideoFragment450 (VK_SHADER_STAGE_VERTEX_BIT | (1 << 7))
10
13 { VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP,
14 { { 0, { 0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1, VK_SHADER_STAGE_VERTEX_BIT, nullptr } } },
15 { },
16 { },
17 { VK_SHADER_STAGE_VERTEX_BIT, 0, MYTH_PUSHBUFFER_SIZE } }
18 },
20 { VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP,
21 { { 1, { 0, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1, VK_SHADER_STAGE_FRAGMENT_BIT, nullptr } } },
22 { },
23 { },
24 { } }
25 }
26};
27
29{
31{
32"#version 450\n"
33"#extension GL_ARB_separate_shader_objects : enable\n",
34{
350x0
36} } },
37{
39{
40"#version 450\n"
41"#extension GL_ARB_separate_shader_objects : enable\n",
42{
430x0
44} } }
45};
46
47#endif
#define MYTH_PUSHBUFFER_SIZE
std::map< int, std::pair< QString, std::vector< uint32_t > > > MythShaderMap
std::map< int, MythBindingDesc > MythBindingMap
static const MythBindingMap k450VideoShaderBindings
#define VideoFragment450
#define VideoVertex450
static const MythShaderMap k450VideoShaders