Vulkan: Push constants #104880

Merged
Jeroen Bakker merged 73 commits from Jeroen-Bakker/blender:vulkan-push-constants into main 2023-03-06 12:29:06 +01:00
1 changed files with 5 additions and 5 deletions
Showing only changes of commit 87feaaf40f - Show all commits

View File

@ -39,7 +39,7 @@ uint32_t Std430::element_alignment(const shader::Type type, const bool is_array)
case shader::Type::MAT4:
return 16;
default:
BLI_assert_msg(false, "Type not supported as push constant");
BLI_assert_msg(false, "Type not supported in dynamic structs.");
}
return 0;
}
@ -68,7 +68,7 @@ uint32_t Std430::element_components_len(const shader::Type type)
case shader::Type::MAT4:
return 16;
default:
BLI_assert_msg(false, "Type not supported as push constant");
BLI_assert_msg(false, "Type not supported in dynamic structs.");
}
return 0;
}
@ -108,7 +108,7 @@ uint32_t Std140::element_alignment(const shader::Type type, const bool is_array)
case shader::Type::MAT4:
return 16;
default:
BLI_assert_msg(false, "Type not supported as push constant");
BLI_assert_msg(false, "Type not supported in dynamic structs.");
}
return 0;
}
@ -137,7 +137,7 @@ uint32_t Std140::element_components_len(const shader::Type type)
case shader::Type::MAT4:
return 16;
default:
BLI_assert_msg(false, "Type not supported as push constant");
BLI_assert_msg(false, "Type not supported in dynamic structs.");
}
return 0;
}
@ -164,7 +164,7 @@ uint32_t Std140::array_components_len(const shader::Type type)
case shader::Type::MAT4:
return 16;
default:
BLI_assert_msg(false, "Type not supported as push constant");
BLI_assert_msg(false, "Type not supported in dynamic structs.");
}
return 0;
}