#include "OperatingSystemGPU.h"
Represents a GPU operating system.
This class inherits from UOperatingSystemBaseHardware and provides additional functionality specific to a GPU.
◆ UOperatingSystemGPU()
UOperatingSystemGPU::UOperatingSystemGPU |
( |
| ) |
|
◆ CreateGPU()
Creates a GPU object and initializes it.
- Parameters
-
OwningMotherboard | A pointer to the UOperatingSystemMBB object that owns the GPU. |
OutError | A reference to the FGenericError object used to store error messages if the GPU creation fails. |
- Returns
- A pointer to the created UOperatingSystemGPU object, or nullptr if the creation failed.
◆ OnValidate()
bool UOperatingSystemGPU::OnValidate |
( |
FGenericError & | OutError | ) |
const |
|
overrideprotectedvirtual |
Validates the GPU by checking if it has the correct hardware tag.
This method is called to validate the GPU object. It compares the HardwareTag of the GPU with the GpuTag constant and returns true if they match. If they do not match, it sets the OutError parameter with an error message and returns false.
- Parameters
-
OutError | A reference to the FGenericError object used to store error messages if the validation fails. |
- Returns
- True if the GPU is valid, false otherwise.
- See also
- UOperatingSystemGPU::HardwareTag
-
GpuTag
-
FGenericError
Reimplemented from UOperatingSystemBaseHardware.
The documentation for this class was generated from the following files: