mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #1643] [CLOSED] shader: Specialize on vertex input number types if needed. #2217
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#2217
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/1643
Author: @squidbus
Created: 12/1/2024
Status: ❌ Closed
Base:
main← Head:vs_in_type📝 Commits (2)
30b292ashader: Specialize on vertex input number types if needed.b9b488fshader_recompiler: Use number format helpers more📊 Changes
10 files changed (+84 additions, -33 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp(+10 -24)📝
src/shader_recompiler/info.h(+4 -0)📝
src/shader_recompiler/profile.h(+1 -0)📝
src/shader_recompiler/specialization.h(+32 -2)📝
src/video_core/amdgpu/pixel_format.h(+17 -0)📝
src/video_core/buffer_cache/buffer_cache.cpp(+1 -1)📝
src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp(+1 -2)📝
src/video_core/renderer_vulkan/vk_instance.cpp(+7 -0)📝
src/video_core/renderer_vulkan/vk_instance.h(+7 -0)📝
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp(+4 -4)📄 Description
According to Vulkan spec the vertex inputs should have number type classes (float, uint, int) matching those in the shader. This adds specialization to match that.
For drivers with
VK_EXT_legacy_vertex_attributessupport, this can be skipped, as it allows mismatched types:Fixes validation errors like:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.