mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-19 20:37:51 +00:00
nvnflinger/gpu: implement blending
This commit is contained in:
parent
effe70a904
commit
1c32e4157c
37 changed files with 383 additions and 141 deletions
|
@ -11,6 +11,12 @@
|
|||
|
||||
namespace Tegra {
|
||||
|
||||
enum class BlendMode {
|
||||
Opaque,
|
||||
Premultiplied,
|
||||
Coverage,
|
||||
};
|
||||
|
||||
/**
|
||||
* Struct describing framebuffer configuration
|
||||
*/
|
||||
|
@ -23,6 +29,7 @@ struct FramebufferConfig {
|
|||
Service::android::PixelFormat pixel_format{};
|
||||
Service::android::BufferTransformFlags transform_flags{};
|
||||
Common::Rectangle<int> crop_rect{};
|
||||
BlendMode blending{};
|
||||
};
|
||||
|
||||
Common::Rectangle<f32> NormalizeCrop(const FramebufferConfig& framebuffer, u32 texture_width,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue