mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 23:37:57 +00:00
nvnflinger/gpu: implement blending
This commit is contained in:
parent
effe70a904
commit
1c32e4157c
37 changed files with 383 additions and 141 deletions
|
@ -746,7 +746,13 @@ std::pair<typename P::ImageView*, bool> TextureCache<P>::TryFindFramebufferImage
|
|||
}();
|
||||
|
||||
const auto GetImageViewForFramebuffer = [&](ImageId image_id) {
|
||||
const ImageViewInfo info{ImageViewType::e2D, view_format};
|
||||
ImageViewInfo info{ImageViewType::e2D, view_format};
|
||||
if (config.blending == Tegra::BlendMode::Opaque) {
|
||||
info.x_source = static_cast<u8>(SwizzleSource::R);
|
||||
info.y_source = static_cast<u8>(SwizzleSource::G);
|
||||
info.z_source = static_cast<u8>(SwizzleSource::B);
|
||||
info.w_source = static_cast<u8>(SwizzleSource::OneFloat);
|
||||
}
|
||||
return std::make_pair(&slot_image_views[FindOrEmplaceImageView(image_id, info)],
|
||||
slot_images[image_id].IsRescaled());
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue