Search Results for

    Show / Hide Table of Contents

    Class GPUBufferVulkan

    GPU buffer for Vulkan backend.

    Inheritance
    Object
    ScriptingObject
    GPUResource
    GPUBuffer
    GPUResourceBase
    GPUResourceVulkan
    GPUBufferVulkan
    Inherited Members
    GPUBuffer::_desc
    GPUResourceBase::_device
    ScriptingObject::_gcHandle
    ScriptingObject::_id
    GPUBuffer::_isLocked
    GPUResource::_memoryUsage
    GPUResource::_nameCapacity
    GPUResource::_namePtr
    GPUResource::_nameSize
    ScriptingObject::_type
    ScriptingObject::CanCast(const ScriptingTypeHandle& from, const ScriptingTypeHandle& to)
    ScriptingObject::CanCast(const MClass* from, const MClass* to)
    ScriptingObject::Cast(ScriptingObject* obj)
    ScriptingObject::ChangeID(const Guid& newId)
    ScriptingObject::CreateManaged()
    ScriptingObject::CreateManagedInternal()
    ScriptingObject::Deleted
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    ScriptingObject::DestroyManaged()
    GPUBuffer::DownloadData(BytesContainer& result)
    GPUBuffer::DownloadDataAsync(BytesContainer& result)
    Object::Flags
    ScriptingObject::FromInterface(void* interfaceObj, const ScriptingTypeHandle& interfaceType)
    ScriptingObject::FromInterface(T* interfaceObj)
    ScriptingObject::GetClass()
    GPUBuffer::GetData(BytesContainer& output)
    GPUBuffer::GetDescription()
    GPUResourceBase::GetDevice()
    GPUBuffer::GetElementsCount()
    GPUBuffer::GetFlags()
    GPUBuffer::GetFormat()
    ScriptingObject::GetID()
    ScriptingObject::GetManagedInstance()
    GPUResource::GetMemoryUsage()
    GPUResource::GetName()
    ScriptingObject::GetOrCreateManagedInstance()
    GPUBuffer::GetResourceType()
    GPUBuffer::GetSize()
    GPUBuffer::GetStride()
    ScriptingObject::GetType()
    ScriptingObject::GetTypeHandle()
    GPUBuffer::GetVertexLayout()
    GPUBuffer::GPUBuffer()
    GPUResource::GPUResource()
    GPUResource::GPUResource(const SpawnParams& params)
    GPUResourceBase::GPUResourceBase(DeviceType* device, const StringView& name)
    GPUResourceVulkan::GPUResourceVulkan(GPUDeviceVulkan* device, const StringView& name)
    ScriptingObject::HasManagedInstance()
    GPUBuffer::Init(const GPUBufferDescription& desc)
    ScriptingObject::Is(const ScriptingTypeHandle& type)
    ScriptingObject::Is(const MClass* type)
    ScriptingObject::Is()
    GPUBuffer::IsAllocated()
    GPUBuffer::IsDynamic()
    ScriptingObject::IsRegistered()
    GPUBuffer::IsShaderResource()
    GPUBuffer::IsStaging()
    GPUBuffer::IsUnorderedAccess()
    GPUResource::LastRenderTime
    ScriptingObject::NewObject(const ScriptingTypeHandle& typeHandle)
    ScriptingObject::NewObject()
    GPUResource::OnDeleteObject()
    GPUResourceBase::OnDeviceDispose()
    ScriptingObject::OnManagedInstanceDeleted()
    ScriptingObject::OnScriptingDispose()
    ScriptingObject::RegisterObject()
    GPUResource::ReleaseGPU()
    GPUResource::Releasing
    GPUBuffer::Resize(uint32 newSize)
    ScriptingObject::ScriptingObject(const SpawnParams& params)
    GPUBuffer::SetData(const void* data, uint32 size)
    ScriptingObject::SetManagedInstance(MObject* instance)
    GPUResource::SetName(const StringView& name)
    GPUBufferVulkan
    ScriptingObject::ToInterface(ScriptingObject* obj, const ScriptingTypeHandle& interfaceType)
    ScriptingObject::ToInterface(ScriptingObject* obj)
    ScriptingObject::ToManaged(const ScriptingObject* obj)
    ScriptingObject::ToNative(MObject* obj)
    GPUBuffer::ToStagingReadback()
    GPUBuffer::ToStagingUpload()
    GPUBuffer::ToString()
    ScriptingObject::UnregisterObject()
    GPUResource::~GPUResource()
    GPUResourceBase::~GPUResourceBase()
    Object::~Object()
    ScriptingObject::~ScriptingObject()
    Assembly: FlaxEngine.dll
    File: Engine/GraphicsDevice/Vulkan/GPUBufferVulkan.h
    Syntax
    public class GPUBufferVulkan : public GPUResourceVulkan

    Constructors

    GPUBufferVulkan(GPUDeviceVulkan* device, const StringView& name)

    Initializes a new instance of the GPUBufferVulkan class.

    Declaration
    public GPUBufferVulkan(GPUDeviceVulkan* device, const StringView& name)
    Parameters
    GPUDeviceVulkan device

    The device.

    StringView name

    The name.

    Fields

    Access

    The current buffer access flags.

    Declaration
    public VkAccessFlags Access
    Field Value
    VkAccessFlags

    Counter

    The counter buffer attached to the Append/Counter buffers.

    Declaration
    public GPUBufferVulkan* Counter = nullptr
    Field Value
    GPUBufferVulkan

    Methods

    GetAllocation()

    Gets the Vulkan memory allocation handle.

    Declaration
    public VmaAllocation GetAllocation() const
    Returns
    VmaAllocation

    GetHandle()

    Gets the Vulkan buffer handle.

    Declaration
    public VkBuffer GetHandle() const
    Returns
    VkBuffer

    Map(GPUResourceMapMode mode)

    Gets a CPU pointer to the resource by mapping its contents. Denies the GPU access to that resource.

    Always call Unmap if the returned pointer is valid to release resources.

    Declaration
    public virtual void* Map(GPUResourceMapMode mode) override
    Parameters
    GPUResourceMapMode mode

    The map operation mode.

    Returns
    void

    The pointer of the mapped CPU buffer with resource data or null if failed.

    Overrides
    GPUBuffer::Map(GPUResourceMapMode mode)

    OnInit()

    Declaration
    protected virtual bool OnInit() override
    Returns
    bool

    Overrides
    GPUBuffer::OnInit()

    OnReleaseGPU()

    Releases GPU resource data (implementation).

    Declaration
    protected virtual void OnReleaseGPU() override
    Overrides
    GPUBuffer::OnReleaseGPU()

    Unmap()

    Invalidates the mapped pointer to a resource and restores the GPU's access to that resource.

    Declaration
    public virtual void Unmap() override
    Overrides
    GPUBuffer::Unmap()

    View()

    Gets the view for the whole buffer.

    Declaration
    public virtual GPUBufferView* View() const override
    Returns
    GPUBufferView

    Overrides
    GPUBuffer::View()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat