Serenity Operating System
at master 23 lines 695 B view raw
1/* 2 * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <AK/Types.h> 10 11namespace GPU { 12 13// FIXME: These 3 types were originally introduced in LibSoftGPU and are currently needed by the device interface. 14// Once we refactor the interface these should move back into LibSoftGPU. 15using ColorType = u32; // BGRA:8888 16using DepthType = float; 17using StencilType = u8; 18 19// FIXME: This constant was originally introduced in LibSoftGPU and is currently used in the Vertex struct. 20// Once we refactor the interface this should move back into LibSoftGPU. 21static constexpr int NUM_TEXTURE_UNITS = 2; 22 23}