mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
LibGL: Implement GL_TEXTURE_LOD_BIAS
for texture objects
This commit is contained in:
parent
59fc2a4aad
commit
eda1ffba73
Notes:
sideshowbarker
2024-07-17 07:20:57 +09:00
Author: https://github.com/gmta
Commit: eda1ffba73
Pull-request: https://github.com/SerenityOS/serenity/pull/15227
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/Smrtnyk ✅
Reviewed-by: https://github.com/sunverwerth ✅
3 changed files with 10 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||
* Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
|
@ -25,8 +26,12 @@ public:
|
|||
RefPtr<GPU::Image> device_image() { return m_device_image; }
|
||||
void set_device_image(RefPtr<GPU::Image> image) { m_device_image = image; }
|
||||
|
||||
float level_of_detail_bias() const { return m_level_of_detail_bias; }
|
||||
void set_level_of_detail_bias(float level_of_detail_bias) { m_level_of_detail_bias = level_of_detail_bias; }
|
||||
|
||||
private:
|
||||
RefPtr<GPU::Image> m_device_image;
|
||||
float m_level_of_detail_bias { 0.f };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue