BufferDesc

A buffer description structure used to create buffer resources. Provides convenience functions for creating buffer descriptions of all supported types of buffers.

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

Methods

Return type

Description

static BufferDesc

Vertex ( const wchar_t* name, uint32_t size, uint32_t stride, uint32_t alignment = 0, ResourceFlags flags = ResourceFlags::None )
Convenience creation function for vertex buffer descriptions.

static BufferDesc

Index ( const wchar_t* name, uint32_t size, ResourceFormat format, uint32_t alignment = 0, ResourceFlags flags = ResourceFlags::None )
Convenience creation function for index buffer descriptions.

static BufferDesc

Constant ( const wchar_t* name, uint32_t size, uint32_t stride, uint32_t alignment = 0, ResourceFlags flags = ResourceFlags::None )
Convenience creation function for constant buffer descriptions.

static BufferDesc

Data ( const wchar_t* name, uint32_t size, uint32_t stride, uint32_t alignment = 0, ResourceFlags flags = ResourceFlags::None )
Convenience creation function for data buffer descriptions.

static BufferDesc

AccelerationStructure ( const wchar_t* name, uint32_t size, uint32_t stride, uint32_t alignment = 0, ResourceFlags flags = ResourceFlags::None )
Convenience creation function for acceleration structure descriptions.

Detailed description

A buffer description structure used to create buffer resources. Provides convenience functions for creating buffer descriptions of all supported types of buffers.

Data fields

Type

Description

BufferType

Type
The “BufferType“ this resource will be.

ResourceFlags

Flags
Needed “ResourceFlags“.

uint32_t

Size
The size of the buffer in bytes.

uint32_t

Alignment
The required alignment of the buffer.

uint32_t

Stride
The stride of the buffer, or.

ResourceFormat

Format
The format of the buffer (when using as an index buffer).

std::wstring

Name
The name to assign to the created “Buffer“ resource.

Methods

Vertex

Copied!

static BufferDesc Vertex (
    const wchar_t* name,
    uint32_t size,
    uint32_t stride,
    uint32_t alignment = 0,
    ResourceFlags  flags = ResourceFlags::None
)

Convenience creation function for vertex buffer descriptions.


Index

Copied!

static BufferDesc Index (
    const wchar_t* name,
    uint32_t size,
    ResourceFormat  format,
    uint32_t alignment = 0,
    ResourceFlags  flags = ResourceFlags::None
)

Convenience creation function for index buffer descriptions.


Constant

Copied!

static BufferDesc Constant (
    const wchar_t* name,
    uint32_t size,
    uint32_t stride,
    uint32_t alignment = 0,
    ResourceFlags  flags = ResourceFlags::None
)

Convenience creation function for constant buffer descriptions.


Data

Copied!

static BufferDesc Data (
    const wchar_t* name,
    uint32_t size,
    uint32_t stride,
    uint32_t alignment = 0,
    ResourceFlags  flags = ResourceFlags::None
)

Convenience creation function for data buffer descriptions.


AccelerationStructure

Copied!

static BufferDesc AccelerationStructure (
    const wchar_t* name,
    uint32_t size,
    uint32_t stride,
    uint32_t alignment = 0,
    ResourceFlags  flags = ResourceFlags::None
)

Convenience creation function for acceleration structure descriptions.


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!