Search Results for

    Show / Hide Table of Contents

    Class GPUResourceBase

    Describes base implementation of Graphics Device resource for rendering back-ends.

    DeviceType is GPU device typename, BaseType must be GPUResource type to inherit from).

    Inheritance
    BaseType
    GPUResourceBase
    Assembly: FlaxEngine.dll
    File: Engine/Graphics/GPUResource.h
    Syntax
    public class GPUResourceBase<DeviceType, BaseType>
    Type Parameters
    DeviceType

    BaseType

    Constructors

    ~GPUResourceBase()

    Finalizes an instance of the GPUResourceBase class.

    Declaration
    public virtual ~GPUResourceBase()

    GPUResourceBase(DeviceType* device, const StringView& name)

    Initializes a new instance of the GPUResourceBase class.

    Declaration
    public GPUResourceBase(DeviceType* device, const StringView& name) noexcept
    Parameters
    DeviceType device

    The graphics device.

    StringView name

    The resource name.

    Fields

    _device

    Declaration
    protected DeviceType* _device
    Field Value
    DeviceType

    Methods

    GetDevice()

    Gets the graphics device.

    Declaration
    public DeviceType* GetDevice() const
    Returns
    DeviceType

    OnDeviceDispose()

    Declaration
    public void OnDeviceDispose() override
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat