mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
specialize data_format when attribute uses step rates
This commit is contained in:
parent
47db86c3cd
commit
eb876e604a
@ -13,6 +13,7 @@
|
||||
namespace Shader {
|
||||
|
||||
struct VsAttribSpecialization {
|
||||
AmdGpu::DataFormat data_format{};
|
||||
AmdGpu::NumberClass num_class{};
|
||||
AmdGpu::CompMapping dst_select{};
|
||||
|
||||
@ -94,6 +95,8 @@ struct StageSpecialization {
|
||||
// Specialize shader on VS input number types to follow spec.
|
||||
ForEachSharp(vs_attribs, fetch_shader_data->attributes,
|
||||
[&profile_](auto& spec, const auto& desc, AmdGpu::Buffer sharp) {
|
||||
spec.data_format =
|
||||
desc.UsesStepRates() ? sharp.GetDataFmt() : AmdGpu::DataFormat{};
|
||||
spec.num_class = profile_.support_legacy_vertex_attributes
|
||||
? AmdGpu::NumberClass{}
|
||||
: AmdGpu::GetNumberClass(sharp.GetNumberFmt());
|
||||
|
Loading…
Reference in New Issue
Block a user