mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3226] [CLOSED] video_core: support for RT layer outputs #3319
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3226
Author: @polybiusproxy
Created: 7/10/2025
Status: ❌ Closed
Base:
main← Head:video_core/layers2📝 Commits (2)
7a20a8evideo_core: support for RT layer outputs026e29fExtra logging📊 Changes
16 files changed (+180 additions, -138 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/emit_spirv.cpp(+3 -0)📝
src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp(+17 -53)📝
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp(+18 -27)📝
src/shader_recompiler/backend/spirv/spirv_emit_context.h(+2 -0)📝
src/shader_recompiler/frontend/translate/export.cpp(+5 -2)📝
src/shader_recompiler/frontend/translate/translate.h(+1 -0)📝
src/shader_recompiler/info.h(+1 -0)📝
src/shader_recompiler/ir/passes/ring_access_elimination.cpp(+7 -5)📝
src/shader_recompiler/ir/passes/shader_info_collection_pass.cpp(+4 -0)➕
src/shader_recompiler/ir/position.h(+53 -0)📝
src/shader_recompiler/runtime_info.h(+5 -3)📝
src/video_core/renderer_vulkan/vk_instance.cpp(+1 -0)📝
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp(+52 -45)📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+6 -0)📝
src/video_core/renderer_vulkan/vk_scheduler.cpp(+4 -3)📝
src/video_core/renderer_vulkan/vk_scheduler.h(+1 -0)📄 Description
Games can choose what slice of the render target to write to from within a shader—this is commonly used for drawing cubemaps in a single pass. This can be done from geometry, vertex, or tesselation eval shaders.
This works by outputting the selected slice to the Z component of the pos1 target:
Can also be seen used on the AMD compilers:
github.com/GPUOpen-Drivers/llpc@6222f1ff6b/lgc/lowering/LowerInOut.cpp (L1526)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.