mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-23 03:13:11 +00:00
5b2b6d594c
Games using D3D idioms can join images and samplers when a shader executes, instead of baking them into a combined sampler image. This is also possible on Vulkan. One approach to this solution would be to use separate samplers on Vulkan and leave this unimplemented on OpenGL, but we can't do this because there's no consistent way of determining which constant buffer holds a sampler and which one an image. We could in theory find the first bit and if it's in the TIC area, it's an image; but this falls apart when an image or sampler handle use an index of zero. The used approach is to track for a LOP.OR operation (this is done at an IR level, not at an ISA level), track again the constant buffers used as source and store this pair. Then, outside of shader execution, join the sample and image pair with a bitwise or operation. This approach won't work on games that truly use separate samplers in a meaningful way. For example, pooling textures in a 2D array and determining at runtime what sampler to use. This invalidates OpenGL's disk shader cache :) - Used mostly by D3D ports to Switch |
||
---|---|---|
.. | ||
gl_buffer_cache.cpp | ||
gl_buffer_cache.h | ||
gl_device.cpp | ||
gl_device.h | ||
gl_fence_manager.cpp | ||
gl_fence_manager.h | ||
gl_framebuffer_cache.cpp | ||
gl_framebuffer_cache.h | ||
gl_query_cache.cpp | ||
gl_query_cache.h | ||
gl_rasterizer.cpp | ||
gl_rasterizer.h | ||
gl_resource_manager.cpp | ||
gl_resource_manager.h | ||
gl_sampler_cache.cpp | ||
gl_sampler_cache.h | ||
gl_shader_cache.cpp | ||
gl_shader_cache.h | ||
gl_shader_decompiler.cpp | ||
gl_shader_decompiler.h | ||
gl_shader_disk_cache.cpp | ||
gl_shader_disk_cache.h | ||
gl_shader_manager.cpp | ||
gl_shader_manager.h | ||
gl_shader_util.cpp | ||
gl_shader_util.h | ||
gl_state_tracker.cpp | ||
gl_state_tracker.h | ||
gl_stream_buffer.cpp | ||
gl_stream_buffer.h | ||
gl_texture_cache.cpp | ||
gl_texture_cache.h | ||
maxwell_to_gl.h | ||
renderer_opengl.cpp | ||
renderer_opengl.h | ||
utils.cpp | ||
utils.h |