diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-23 19:13:48 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-23 19:15:17 +0100 |
| commit | a13e1c0911c0627184bc38f18c7fdda64447b3ad (patch) | |
| tree | 073a62c09bf216e85a3f310376640fa1805147f9 /dev/LibSCI/GPU.h | |
| parent | 149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff) | |
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibSCI/GPU.h')
| -rw-r--r-- | dev/LibSCI/GPU.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/dev/LibSCI/GPU.h b/dev/LibSCI/GPU.h deleted file mode 100644 index a29eae00..00000000 --- a/dev/LibSCI/GPU.h +++ /dev/null @@ -1,78 +0,0 @@ -/* ------------------------------------------- - -Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - -File: GPU.h -Purpose: GPU/FB System Calls. - -------------------------------------------- */ - -#ifndef SCI_GPU_H -#define SCI_GPU_H - -#include <LibSCI/SCI.h> - -/// ------------------------------------------------------------------------------------------ // -/// @brief Graphics Processor API. -/// ------------------------------------------------------------------------------------------ // - -struct GPUCmdEntry; -struct GPUCmdEntryTraits; - -typedef VoidPtr GPUObject; - -/// ------------------------------------------------------------------------------------------ // -/// @brief Command structure type. -/// ------------------------------------------------------------------------------------------ // - -struct GPUCmdEntry -{ - VoidPtr Data{nullptr}; - SizeT DataSz{0}; - SizeT Layer{0}; - BOOL IsGPGPUData{NO}; -}; - -struct GPUCmdEntryTraits final -{ - GPUCmdEntry* Cmd{nullptr}; - - BOOL isGPGPUData() - { - return this->isValid() && this->Cmd->IsGPGPUData; - } - - BOOL isBackBuffer() - { - return this->Cmd->Layer > 0; - } - - BOOL isValid() - { - return this->Cmd->Data && (this->Cmd->DataSz > 0) && (MmGetHeapFlags(this->Cmd->Data) != ~0); - } -}; - -IMPORT_C BOOL GPUListDevices(const Char** list, SizeT cnt); - -IMPORT_C GPUObject GPUFindByDeviceName(_Input const Char* device_name); - -IMPORT_C GPUObject GPUQueryInfo(_Input const GPUObject* gpu_handle, VoidPtr* out, SizeT out_sz); - -IMPORT_C SInt32 GPUDisposeDevice(GPUObject gpu_handle, Bool cancel_all, Bool flush_all); - -IMPORT_C SInt32 GPUSendCmdBufferListWithCnt(GPUObject gpu_handle, GPUCmdEntry** cmd_list, SizeT cmd_list_cnt); - -// ------------------------------------------------------------------------------------------ // -// @brief Framebuffer API. -// ------------------------------------------------------------------------------------------ // - -IMPORT_C SInt32 FBAcquireBuffer(GPUObject* out, SInt32 width, SInt32 height); - -IMPORT_C SInt32 FBDisposeBuffer(GPUObject* in); - -IMPORT_C SInt32 FBGetColorProfile(GPUObject in); - -IMPORT_C SInt32 FBQueryInfo(GPUObject handle, VoidPtr* info_ptr, SizeT* info_sz); - -#endif // ifndef SCI_GPU_H |
