summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
AgeCommit message (Collapse)Author
2025-10-26VideoBackends / VideoCommon: add support for specifying include files in ↵iwubcode
shader code
2024-01-28VideoBackends:Multiple: Split up BUG_BROKEN_SUBGROUP_OPSTellowKrinkle
We now use subgroup ops for more than just a minor performance optimization
2023-06-28VideoBackends: support multiple compute images for some backends (D3D, OGL, ↵iwubcode
Vulkan)
2023-03-24Vulkan: Enable subgroupShuffle.degasus
It is used as workaround for the missing subgroupBroadcastDynamicId flag on SPIR-V < 1.5.
2023-02-09VideoBackend/OGL: Prefer KHR_subgroup over NV_shader_thread.degasus
While the NV extension is totally fine, the KHR extension should be able to support more hardware. For NVIDIA, the hardware either supports both or neither, it just needs a driver from the last two years. For AMD, the drivers from late 2022-12 seems to bring support for the KHR extension. For Intel, the KHR is also supported for some years.
2022-07-09ShaderCompiler: Use compute shader header in compute shadersOatmealDome
2022-06-24VideoBackends / VideoCommon: refactor Vulkan to use new SPIRV functionalityiwubcode
2022-06-16VideoCommon: Fix SSBO layout and remove associated "bug"TellowKrinkle
2022-04-22Vulkan: Include the info log in the shader compile error panic alertPokechu22
The other backends do this, and it is helpful for quickly identifying errors during development.
2022-04-22Vulkan: Close the output stream on shader compile error before showing the ↵Pokechu22
panic alert This fixes the file showing up as 0 bytes in Windows Explorer (although the file would still display properly when opened).
2022-01-14Fix static initialisation order fiasco issue for Version variablesLéo Lam
Fixes a crash that could occur if the static constructor function for the MainSettings.cpp TU happened to run before the variables in Common/Version.cpp are initialised. (This is known as the static initialisation order fiasco.) By using wrapper functions, those variables are now guaranteed to be constructed on first use.
2021-12-22Merge pull request #10215 from OatmealDome/shader-logic-opsJMC47
VideoCommon: Support shader logic ops on Metal (Apple GPUs) and OpenGL ES
2021-12-10Treewide: Adjust order of includesPokechu22
2021-12-06ShaderCompiler: Add helpers for Metal framebuffer fetchOatmealDome
2021-12-06ShaderCompiler: Add new helper define for input attachment bindingOatmealDome
2021-08-05ShaderCompiler: Attach source text to SPIR-V for debuggers like RenderDocOatmealDome
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-06-07Vulkan: Fix subgroup reductionTechjar
It seems that we were writing values from helper invocations, which produces wrong results.
2020-12-02General: Convert PanicAlerts over to fmt equivalentLioncash
Converts lingering panic alert calls over to the fmt-capable ones.
2020-11-09Vulkan: Migrate logging over to fmtLioncash
Migrates the vulkan backend over to the fmt-capable logger.
2020-05-30Externals: Fix build failures with the newer glslang.orbea
v2: Don't include glslang project wide.
2020-03-24Cleanup warnings of -Wmissing-declarationsJun Su
Add static to the functions which is not intentionally export to big scope.
2020-01-24Add Dolphin version and current video backend to shader compilation logsRyan Meredith
2019-06-17VideoBackends/Vulkan: Use nested namespace specifiers where applicableLioncash
2019-05-30VideoVulkan/ShaderCompiler: Use non-member std::size instead of ArraySize()Lioncash
Now that we're on C++17, we can use its non-member std::size function instead of ours. This provides no functional change.
2019-05-30VideoVulkan/ShaderCompiler: Use a std::optional instead of bool+out variableLioncash
Now that we utilize C++17, we can simply return an optional containing the code instead of using an out variable and a boolean result, essentially combining them into one. This provides a much more straightforward interface.
2019-05-30VideoCommon/RenderBase: Use a std::string_view with CreateShaderFromSource()Lioncash
Greatly simplifies the overall interface when it comes to compiling shaders. Also allows getting rid of a std::string overload of the same name. Now std::string and const char* both go through the same function.
2019-03-29Vulkan: Support subgroup reduction operations via GL_KHR_shader_subgroupStenzek
2019-02-19Move most backend functionality to VideoCommonStenzek
2018-08-29Vulkan: Drop usage of VK_NV_glsl extensionStenzek
It's not providing a large performance improvement anymore, after the more recent drivers introduced a new shader compiler.
2018-06-02Externals: Update glslang to upstream commit 32d3ec3Stenzek
2018-04-12Reformat all the things!spycrab
2017-10-11Vulkan: Use VK_NV_glsl extension where available, and skip glslangStenzek
2017-09-03Revert "Vulkan: Use VK_NV_glsl extension where available, and skip glslang"Stenzek
This reverts commit d23fd17e1a2c7c617731d619020af021a7658e93. Dynamic sampler indexing is broken in VK_NV_glsl as of 385.41. The performance gap doesn't seem to be as wide with the updated driver, so to save maintaining two code paths, it's easier to just drop the extension support completely.
2017-07-30Vulkan: Use VK_NV_glsl extension where available, and skip glslangStenzek
Seems to produce faster ubershaders, at least.
2017-06-15Add a namespace to OpenFStreamJosJuice
For consistency with the other functions in FileUtil.h.
2017-04-01Vulkan: Compute shader supportStenzek
2016-12-04Vulkan: Support binding texel buffers in UtilityShaderDrawStenzek
2016-09-30Vulkan: Amend header includesLioncash
Adds headers where necessary to eliminate indirect includes. Also adds headers to ensure certain standard constructs always resolve correctly
2016-10-01Implement experimental Vulkan backendStenzek