mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
samplers
This commit is contained in:
parent
e418249f75
commit
292b2878cc
@ -332,6 +332,7 @@ void SerializeInfo(std::ostream& info_serialized, Shader::Info &info) {
|
|||||||
ar << info.uses_patches;
|
ar << info.uses_patches;
|
||||||
ar << info.buffers;
|
ar << info.buffers;
|
||||||
ar << info.images;
|
ar << info.images;
|
||||||
|
ar << info.samplers;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cereal/types/map.hpp>
|
#include <cereal/types/map.hpp>
|
||||||
|
#include <cereal/types/variant.hpp>
|
||||||
#include <cereal/types/utility.hpp>
|
#include <cereal/types/utility.hpp>
|
||||||
#include "shader_recompiler/info.h"
|
#include "shader_recompiler/info.h"
|
||||||
|
|
||||||
@ -74,4 +75,18 @@ void serialize(Archive& ar, Shader::ImageResource& image)
|
|||||||
image.is_r128);
|
image.is_r128);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AmdGpu::Sampler
|
||||||
|
template<class Archive>
|
||||||
|
void serialize(Archive& ar, AmdGpu::Sampler& sampler) {
|
||||||
|
ar(cereal::binary_data(reinterpret_cast<u8*>(&sampler), sizeof(sampler)));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shader::SamplerResource
|
||||||
|
template<class Archive>
|
||||||
|
void serialize(Archive& ar, Shader::SamplerResource& sampler) {
|
||||||
|
ar(sampler.sampler);
|
||||||
|
ar(static_cast<u32>(sampler.associated_image),
|
||||||
|
static_cast<u32>(sampler.disable_aniso));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user