mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:17:44 +00:00
LibGL+LibGPU+LibSoftGPU: Add virtual base class for Images
This introduces a new device independent base class for Images in LibGPU that also keeps track of the device from which it was created in order to prevent assigning images across devices.
This commit is contained in:
parent
1f3642ed48
commit
4a99875582
8 changed files with 69 additions and 26 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGPU/Image.h>
|
||||
#include <LibGfx/Vector4.h>
|
||||
#include <LibSoftGPU/Image.h>
|
||||
|
||||
namespace GPU {
|
||||
|
||||
|
@ -37,7 +37,7 @@ enum class TextureEnvMode {
|
|||
};
|
||||
|
||||
struct SamplerConfig final {
|
||||
RefPtr<SoftGPU::Image> bound_image;
|
||||
RefPtr<Image> bound_image;
|
||||
MipMapFilter mipmap_filter { MipMapFilter::Nearest };
|
||||
TextureFilter texture_mag_filter { TextureFilter::Linear };
|
||||
TextureFilter texture_min_filter { TextureFilter::Linear };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue