Handle shader compilation error

This commit is contained in:
luboslenco
2025-09-09 22:47:18 +02:00
parent 753de3ffd5
commit 2a1ecfbaf5
+5
View File
@@ -1416,6 +1416,11 @@ static VkShaderModule create_shader_module(const void *code, size_t size) {
}
void gpu_pipeline_compile(gpu_pipeline_t *pipeline) {
if (pipeline->vertex_shader->impl.length == 0 || pipeline->fragment_shader->impl.length == 0) {
// Shader compilation error
return;
}
VkPipelineLayoutCreateInfo pipeline_layout_create_info = {
.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,
.setLayoutCount = 1,