summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGPU/DeviceInfo.h
blob: b9f11c472d7eb48e444ed520f395446495eeb9ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/DeprecatedString.h>

namespace GPU {

struct DeviceInfo final {
    DeprecatedString vendor_name;
    DeprecatedString device_name;
    unsigned num_texture_units;
    unsigned num_lights;
    unsigned max_clip_planes;
    unsigned max_texture_size;
    float max_texture_lod_bias;
    u8 stencil_bits;
    bool supports_npot_textures;
    bool supports_texture_clamp_to_edge;
    bool supports_texture_env_add;
};

}