forked from bartvdbraak/blender
ff3b2226fb
This patch refactors the texture samples code by mainly splitting the eGPUSamplerState enum into multiple smaller enums and packing them inside a GPUSamplerState struct. This was done because many members of the enum were mutually exclusive, which was worked around during setting up the samplers in the various backends, and additionally made the API confusing, like the GPU_texture_wrap_mode function, which had two mutually exclusive parameters. The new structure also improved and clarified the backend sampler cache, reducing the cache size from 514 samplers to just 130 samplers, which also slightly improved the initialization time. Further, the GPU_SAMPLER_MAX signal value was naturally incorporated into the structure using the GPU_SAMPLER_STATE_TYPE_INTERNAL type. The only expected functional change is in the realtime compositor, which now supports per-axis repetition control, utilizing new API functions for that purpose. This patch is loosely based on an older patch D14366 by Ethan Hall. Pull Request: https://projects.blender.org/blender/blender/pulls/105642 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
fallback_impl.cc | ||
gpu_shader_display_transform_frag.glsl | ||
gpu_shader_display_transform_vert.glsl | ||
ocio_capi.cc | ||
ocio_capi.h | ||
ocio_impl_glsl.cc | ||
ocio_impl.cc | ||
ocio_impl.h | ||
ocio_shader_shared.hh |