mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #2575] [CLOSED] video_core: support for multi-layered outputs #2830
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#2830
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/2575
Author: @polybiusproxy
Created: 3/1/2025
Status: ❌ Closed
Base:
main← Head:video_core/layers📄 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 PR also fixes a bug where depth targets weren't refreshed - fixes a bug where a depth buffer cleared from a compute shader won't clear the depth image.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.