diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gpu/spirv_shaderc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gpu/spirv_shaderc.c b/video/out/gpu/spirv_shaderc.c index 9b429ca2c2..ee702053d5 100644 --- a/video/out/gpu/spirv_shaderc.c +++ b/video/out/gpu/spirv_shaderc.c @@ -33,6 +33,8 @@ static bool shaderc_init(struct ra_ctx *ctx) shaderc_compile_options_set_optimization_level(p->opts, shaderc_optimization_level_size); + if (ctx->opts.debug) + shaderc_compile_options_set_generate_debug_info(p->opts); int ver, rev; shaderc_get_spv_version(&ver, &rev); |