mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibGL+LibSoftGPU: Add method to query device info
This adds a method `info()` to SoftGPU that returns the name of the hardware vendor and device name, as well as the number of texture untis. LibGL uses the returned texture unit count to initialize its internal texture unit array.
This commit is contained in:
parent
1a758d7bf2
commit
39995548e4
5 changed files with 40 additions and 7 deletions
|
@ -233,10 +233,11 @@ private:
|
|||
// Texture objects
|
||||
TextureNameAllocator m_name_allocator;
|
||||
HashMap<GLuint, RefPtr<Texture>> m_allocated_textures;
|
||||
Array<TextureUnit, 32> m_texture_units;
|
||||
TextureUnit* m_active_texture_unit { &m_texture_units[0] };
|
||||
Vector<TextureUnit, 32> m_texture_units;
|
||||
TextureUnit* m_active_texture_unit;
|
||||
|
||||
SoftGPU::Device m_rasterizer;
|
||||
SoftGPU::DeviceInfo const m_device_info;
|
||||
bool m_sampler_config_is_dirty { true };
|
||||
|
||||
struct Listing {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue