Browse Source
video_core: Use sampler IDs instead pointers in the pipeline config
video_core: Use sampler IDs instead pointers in the pipeline config
The previous approach of storing pointers returned by `GetGraphicsSampler`/`GetComputeSampler` caused UB, as these functions can cause reallocation of the sampler slot vector and therefore invalidate the pointersnce_cpp
8 changed files with 68 additions and 23 deletions
-
23src/video_core/renderer_opengl/gl_compute_pipeline.cpp
-
8src/video_core/renderer_opengl/gl_graphics_pipeline.cpp
-
5src/video_core/renderer_vulkan/pipeline_helper.h
-
6src/video_core/renderer_vulkan/vk_compute_pipeline.cpp
-
6src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
-
1src/video_core/texture_cache/image_view_base.cpp
-
30src/video_core/texture_cache/texture_cache.h
-
12src/video_core/texture_cache/texture_cache_base.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue