Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_shader_create_info.cc
| Show First 20 Lines • Show All 410 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| using namespace blender::gpu; | using namespace blender::gpu; | ||||
| int success = 0; | int success = 0; | ||||
| int skipped = 0; | int skipped = 0; | ||||
| int total = 0; | int total = 0; | ||||
| for (ShaderCreateInfo *info : g_create_infos->values()) { | for (ShaderCreateInfo *info : g_create_infos->values()) { | ||||
| info->finalize(); | info->finalize(); | ||||
| if (info->do_static_compilation_) { | if (info->do_static_compilation_) { | ||||
| if ((GPU_compute_shader_support() == false && info->compute_source_ != nullptr) || | if ((info->metal_backend_only_ && GPU_backend_get_type() != GPU_BACKEND_METAL) || | ||||
| (GPU_compute_shader_support() == false && info->compute_source_ != nullptr) || | |||||
| (GPU_geometry_shader_support() == false && info->geometry_source_ != nullptr) || | (GPU_geometry_shader_support() == false && info->geometry_source_ != nullptr) || | ||||
| (GPU_shader_image_load_store_support() == false && info->has_resource_image()) || | (GPU_shader_image_load_store_support() == false && info->has_resource_image()) || | ||||
| (GPU_shader_storage_buffer_objects_support() == false && info->has_resource_storage())) { | (GPU_shader_storage_buffer_objects_support() == false && info->has_resource_storage())) { | ||||
| skipped++; | skipped++; | ||||
| continue; | continue; | ||||
| } | } | ||||
| total++; | total++; | ||||
| GPUShader *shader = GPU_shader_create_from_info( | GPUShader *shader = GPU_shader_create_from_info( | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||