mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 00:12:40 +00:00
shader: simplify image resource semantics
This commit is contained in:
1 parent
93be8c201b
commit
86e3c90e32
17 files changed
+381
-513
No files matched your search
@@ -199,8 +199,7 @@ static void LogDrawTargetState(const char* draw_name, const RenderColorInfo& col
|
||||
const auto& ps_resources = ps_input_info.stage.program->info;
|
||||
const auto sampled_images = std::count_if(
|
||||
ps_resources.images.begin(), ps_resources.images.end(), [](const auto& image) {
|
||||
return ShaderRecompiler::IR::ImageResourceKindMatches(
|
||||
image.kind, ShaderRecompiler::IR::ImageResourceClass::Sampled);
|
||||
return image.resource_class == ShaderRecompiler::IR::ImageResourceClass::Sampled;
|
||||
});
|
||||
|
||||
vk::Extent2D extent = color.image_id ? color.extent : vk::Extent2D {};
|
||||
|
||||
Reference in new issue
Block a user