2021-12-23 02:38:20 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-12-04 18:02:33 +00:00
|
|
|
#include <AK/DeprecatedString.h>
|
2021-12-23 02:38:20 +01:00
|
|
|
|
2022-03-15 00:07:25 +01:00
|
|
|
namespace GPU {
|
2021-12-23 02:38:20 +01:00
|
|
|
|
|
|
|
|
struct DeviceInfo final {
|
2022-12-04 18:02:33 +00:00
|
|
|
DeprecatedString vendor_name;
|
|
|
|
|
DeprecatedString device_name;
|
2021-12-23 02:38:20 +01:00
|
|
|
unsigned num_texture_units;
|
2022-01-07 22:32:32 +11:00
|
|
|
unsigned num_lights;
|
2022-05-06 09:40:55 +00:00
|
|
|
unsigned max_clip_planes;
|
2022-10-16 16:31:15 -06:00
|
|
|
unsigned max_texture_size;
|
2022-09-04 16:53:23 +02:00
|
|
|
float max_texture_lod_bias;
|
2022-01-16 22:48:46 +01:00
|
|
|
u8 stencil_bits;
|
2022-01-15 17:20:31 +01:00
|
|
|
bool supports_npot_textures;
|
2022-09-09 14:41:07 +02:00
|
|
|
bool supports_texture_clamp_to_edge;
|
2022-08-29 00:10:04 +02:00
|
|
|
bool supports_texture_env_add;
|
2021-12-23 02:38:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|