Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_materials.c
| Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | switch (node->type) { | ||||
| } | } | ||||
| case SH_NODE_TEX_ENVIRONMENT: { | case SH_NODE_TEX_ENVIRONMENT: { | ||||
| NodeTexEnvironment *storage = node->storage; | NodeTexEnvironment *storage = node->storage; | ||||
| const bool use_filter = (storage->interpolation != SHD_INTERP_CLOSEST); | const bool use_filter = (storage->interpolation != SHD_INTERP_CLOSEST); | ||||
| SET_FLAG_FROM_TEST(*r_sampler, use_filter, GPU_SAMPLER_FILTER); | SET_FLAG_FROM_TEST(*r_sampler, use_filter, GPU_SAMPLER_FILTER); | ||||
| break; | break; | ||||
| } | } | ||||
| default: | default: | ||||
| BLI_assert(!"Node type not supported by workbench"); | BLI_assert_msg(0, "Node type not supported by workbench"); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* Return true if the current material ubo has changed and needs to be rebind. */ | /* Return true if the current material ubo has changed and needs to be rebind. */ | ||||
| BLI_INLINE bool workbench_material_chunk_select(WORKBENCH_PrivateData *wpd, | BLI_INLINE bool workbench_material_chunk_select(WORKBENCH_PrivateData *wpd, | ||||
| uint32_t id, | uint32_t id, | ||||
| uint32_t *r_mat_id) | uint32_t *r_mat_id) | ||||
| ▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines | |||||