yuzu/src
ReinUsesLisp 5b2b6d594c shader/texture: Join separate image and sampler pairs offline
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
2020-06-05 00:24:51 -03:00
..
audio_core fix logic error & scale sample volume based on voice volume 2020-05-11 12:56:15 -04:00
common Add xbyak external 2020-05-30 10:55:27 +10:00
core Merge pull request #4002 from lat9nq/fix-nix-mod-directories 2020-05-28 22:36:39 -04:00
input_common input_common: fix build when SDL2 is disabled 2020-05-02 21:47:17 +02:00
tests Merge pull request #3697 from lioncash/declarations 2020-04-23 02:18:52 -04:00
video_core shader/texture: Join separate image and sampler pairs offline 2020-06-05 00:24:51 -03:00
web_service Replace externals with Conan (#3735) 2020-05-08 17:09:29 -04:00
yuzu Merge pull request #3958 from FernandoS27/gl-debug 2020-05-31 17:04:27 -04:00
yuzu_cmd Merge pull request #3958 from FernandoS27/gl-debug 2020-05-31 17:04:27 -04:00
yuzu_tester GPU: Add Fast GPU Time Option. 2020-04-23 08:52:57 -04:00
.clang-format Remove special rules for Windows.h and library includes 2016-09-21 00:16:33 -07:00
CMakeLists.txt CMakeLists: Make missing declarations a compile-time error 2020-04-16 23:43:41 -04:00