Skip to content

Commit a2ca663

Browse files
committed
edited shader directory in cmake and sample
1 parent 6777aa0 commit a2ca663

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

samples/extensions/device_fault/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ add_sample(
2626
NAME "Device Fault"
2727
DESCRIPTION "Using VK_EXT_device_fault extension to get more information when VK_ERROR_DEVICE_LOST error occurs."
2828
SHADER_FILES_GLSL
29-
"device_fault/render.vert"
30-
"device_fault/render.frag"
31-
"device_fault/update_vbo.comp")
29+
"device_fault/glsl/render.vert"
30+
"device_fault/glsl/render.frag"
31+
"device_fault/glsl/update_vbo.comp")

samples/extensions/device_fault/device_fault.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ void DeviceFault::create_compute_pipeline()
242242
{
243243
pipelines.compute_pipeline_layout = create_pipeline_layout(false);
244244
VkComputePipelineCreateInfo info = vkb::initializers::compute_pipeline_create_info(pipelines.compute_pipeline_layout);
245-
info.stage = load_shader("device_fault/update_vbo.comp.spv", VK_SHADER_STAGE_COMPUTE_BIT);
245+
// info.stage = load_shader("device_fault/update_vbo.comp.spv", VK_SHADER_STAGE_COMPUTE_BIT);
246+
info.stage = load_shader("device_fault", "update_vbo.comp.spv", VK_SHADER_STAGE_COMPUTE_BIT);
246247
VK_CHECK(vkCreateComputePipelines(get_device().get_handle(), VK_NULL_HANDLE, 1, &info, nullptr, &pipelines.compute_update_pipeline));
247248
}
248249

@@ -288,8 +289,8 @@ void DeviceFault::create_graphics_pipeline()
288289
info.pStages = stages;
289290
info.stageCount = 2;
290291

291-
stages[0] = load_shader("device_fault/render.vert.spv", VK_SHADER_STAGE_VERTEX_BIT);
292-
stages[1] = load_shader("device_fault/render.frag.spv", VK_SHADER_STAGE_FRAGMENT_BIT);
292+
stages[0] = load_shader("device_fault", "render.vert.spv", VK_SHADER_STAGE_VERTEX_BIT);
293+
stages[1] = load_shader("device_fault", "render.frag.spv", VK_SHADER_STAGE_FRAGMENT_BIT);
293294
VK_CHECK(vkCreateGraphicsPipelines(get_device().get_handle(), VK_NULL_HANDLE, 1, &info, nullptr, &pipelines.bindless_vbo_pipeline));
294295
}
295296

0 commit comments

Comments
 (0)