mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
Specialize vertex attributes on dst_sel
This commit is contained in:
parent
0bdd21b4e4
commit
2bc8a944d4
@ -14,6 +14,7 @@ namespace Shader {
|
||||
|
||||
struct VsAttribSpecialization {
|
||||
AmdGpu::NumberClass num_class{};
|
||||
AmdGpu::CompMapping dst_select{};
|
||||
|
||||
auto operator<=>(const VsAttribSpecialization&) const = default;
|
||||
};
|
||||
@ -95,6 +96,7 @@ struct StageSpecialization {
|
||||
ForEachSharp(vs_attribs, fetch_shader_data->attributes,
|
||||
[](auto& spec, const auto& desc, AmdGpu::Buffer sharp) {
|
||||
spec.num_class = AmdGpu::GetNumberClass(sharp.GetNumberFmt());
|
||||
spec.dst_select = sharp.DstSelect();
|
||||
});
|
||||
}
|
||||
u32 binding{};
|
||||
|
Loading…
Reference in New Issue
Block a user