mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 05:06:31 +00:00
comp/shaders: Rename quad shaders to layer.
As the shader is used for all layers we have, the generic name fits better.
This commit is contained in:
parent
a27164ab43
commit
6222de38c9
src/xrt/compositor
|
@ -8,8 +8,8 @@ spirv_shaders(SHADER_HEADERS
|
|||
shaders/none.frag
|
||||
shaders/panotools.frag
|
||||
shaders/vive.frag
|
||||
shaders/quad.frag
|
||||
shaders/quad.vert
|
||||
shaders/layer.frag
|
||||
shaders/layer.vert
|
||||
)
|
||||
|
||||
set(CLIENT_SOURCE_FILES)
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
#include "comp_layer_renderer.h"
|
||||
|
||||
#include "shaders/quad.frag.h"
|
||||
#include "shaders/quad.vert.h"
|
||||
#include "shaders/layer.frag.h"
|
||||
#include "shaders/layer.vert.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
@ -247,9 +247,9 @@ _init_graphics_pipeline(struct comp_layer_renderer *self,
|
|||
};
|
||||
|
||||
VkPipelineShaderStageCreateInfo shader_stages[2] = {
|
||||
_shader_load(vk, shaders_quad_vert, sizeof(shaders_quad_vert),
|
||||
_shader_load(vk, shaders_layer_vert, sizeof(shaders_layer_vert),
|
||||
VK_SHADER_STAGE_VERTEX_BIT),
|
||||
_shader_load(vk, shaders_quad_frag, sizeof(shaders_quad_frag),
|
||||
_shader_load(vk, shaders_layer_frag, sizeof(shaders_layer_frag),
|
||||
VK_SHADER_STAGE_FRAGMENT_BIT),
|
||||
};
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ shader_srcs = [
|
|||
'none.frag',
|
||||
'panotools.frag',
|
||||
'vive.frag',
|
||||
'quad.vert',
|
||||
'quad.frag'
|
||||
'layer.vert',
|
||||
'layer.frag'
|
||||
]
|
||||
|
||||
shader_headers = []
|
||||
|
|
Loading…
Reference in a new issue