class DynamicBufferPool

File location: framework/cauldron/framework/inc/render/dynamicbufferpool.h

Methods

Return type

Description

static DynamicBufferPool*

DynamicBufferPool instance creation function. Implemented per api/platform to return the correct internal resource type.

BufferAddressInfo

AllocConstantBuffer (uint32_t size, const void* pInitData) = 0
Allocates a temporary constant buffer and initializes it with the provided memory. Returns the BufferAddressInfo for the buffer.

void

BatchAllocateConstantBuffer ( uint32_t size, uint32_t count, BufferAddressInfo * pBufferAddressInfos ) = 0
Allocates a batch of temporary constant buffers without initializing. Sets the BufferAddressInfo for the buffers at the location specified in pBufferAddressInfos.

void

InitializeConstantBuffer ( const BufferAddressInfo & bufferAddressInfo, uint32_t size, const void* pInitData ) = 0

BufferAddressInfo

AllocVertexBuffer (uint32_t vertexCount, uint32_t vertexStride, void** pBuffer) = 0
Allocates a temporary vertex buffer and maps the provided pointer to the backing memory. Returns the BufferAddressInfo for the buffer.

BufferAddressInfo

AllocIndexBuffer (uint32_t indexCount, uint32_t indexStride, void** pBuffer) = 0
Allocates a temporary index buffer and maps the provided pointer to the backing memory. Returns the BufferAddressInfo for the buffer.

const GPUResource *

GetResource () const
Gets a constant pointer to the buffer pool’s underlaying “GPUResource“.

void

EndFrame () = 0
Cycles used memory thus far in preparation for next batch of use.

Detailed description

Methods

CreateDynamicBufferPool

Copied!

static DynamicBufferPool* CreateDynamicBufferPool ()

DynamicBufferPool instance creation function. Implemented per api/platform to return the correct internal resource type.


AllocConstantBuffer

Copied!

virtual BufferAddressInfo  AllocConstantBuffer (
    uint32_t size,
    const void* pInitData
) = 0

Allocates a temporary constant buffer and initializes it with the provided memory. Returns the BufferAddressInfo for the buffer.


BatchAllocateConstantBuffer

Copied!

virtual void BatchAllocateConstantBuffer (
    uint32_t size,
    uint32_t count,
    BufferAddressInfo * pBufferAddressInfos
) = 0

Allocates a batch of temporary constant buffers without initializing. Sets the BufferAddressInfo for the buffers at the location specified in pBufferAddressInfos.


AllocVertexBuffer

Copied!

virtual BufferAddressInfo  AllocVertexBuffer (
    uint32_t vertexCount,
    uint32_t vertexStride,
    void** pBuffer
) = 0

Allocates a temporary vertex buffer and maps the provided pointer to the backing memory. Returns the BufferAddressInfo for the buffer.


AllocIndexBuffer

Copied!

virtual BufferAddressInfo  AllocIndexBuffer (
    uint32_t indexCount,
    uint32_t indexStride,
    void** pBuffer
) = 0

Allocates a temporary index buffer and maps the provided pointer to the backing memory. Returns the BufferAddressInfo for the buffer.


GetResource

Copied!

const GPUResource * GetResource () const

Gets a constant pointer to the buffer pool’s underlaying GPUResource.


EndFrame

Copied!

virtual void EndFrame () = 0

Cycles used memory thus far in preparation for next batch of use.


Related pages

  • Visit the FidelityFX SDK product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNAâ„¢ 2 GPUs, AMD Ryzenâ„¢ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!