Defines

Top level defines used by the FidelityFX SDK.

Macros

Name

Description

FFX_API

FidelityFX exported functions.

FFX_BUFFER_SIZE (4096)

Size of constant buffer entry in the ring buffer table.

FFX_CONSTANT_BUFFER_RING_BUFFER_SIZE (FFX_MAX_QUEUED_FRAMES * FFX_MAX_PASS_COUNT * FFX_BUFFER_SIZE)

Total constant buffer ring buffer size for a single effect context.

FFX_MAX_BARRIERS (128)

Maximum number of barriers per flush.

FFX_MAX_GPU_JOBS (256)

Maximum number of GPU jobs per submission.

FFX_MAX_NUM_CONST_BUFFERS 3

Maximum number of constant buffers bound.

FFX_MAX_NUM_SRVS 64

Maximum supported number of simultaneously bound SRVs.

FFX_MAX_NUM_UAVS 64

Maximum supported number of simultaneously bound UAVs.

FFX_MAX_PASS_COUNT (50)

Maximum number of passes per effect component.

FFX_MAX_QUEUED_FRAMES (4)

Maximum number of queued frames in the backend.

FFX_MAX_RESOURCE_COUNT (512)

Maximum number of resources per effect context.

FFX_MAX_SAMPLERS (16)

Maximum number of samplers supported.

FFX_RESOURCE_NAME_SIZE 64

Maximum number of characters in a resource name.

FFX_RING_BUFFER_DESCRIPTOR_COUNT (FFX_MAX_QUEUED_FRAMES * FFX_MAX_PASS_COUNT * FFX_MAX_RESOURCE_COUNT)

Total number of descriptors in ring buffer needed for a single effect context.

UPLOAD_JOB_COUNT (16)

Maximum number of simultaneous upload jobs.

Detailed description

Top level defines used by the FidelityFX SDK.

Macros

FFX_API

Copied!

#define FFX_API

FidelityFX exported functions.


FFX_BUFFER_SIZE

Copied!

#define FFX_BUFFER_SIZE (4096)

Size of constant buffer entry in the ring buffer table.


FFX_CONSTANT_BUFFER_RING_BUFFER_SIZE

Copied!

#define FFX_CONSTANT_BUFFER_RING_BUFFER_SIZE (FFX_MAX_QUEUED_FRAMES * FFX_MAX_PASS_COUNT * FFX_BUFFER_SIZE)

Total constant buffer ring buffer size for a single effect context.


FFX_MAX_BARRIERS

Copied!

#define FFX_MAX_BARRIERS (128)

Maximum number of barriers per flush.


FFX_MAX_GPU_JOBS

Copied!

#define FFX_MAX_GPU_JOBS (256)

Maximum number of GPU jobs per submission.


FFX_MAX_NUM_CONST_BUFFERS

Copied!

#define FFX_MAX_NUM_CONST_BUFFERS 3

Maximum number of constant buffers bound.


FFX_MAX_NUM_SRVS

Copied!

#define FFX_MAX_NUM_SRVS 64

Maximum supported number of simultaneously bound SRVs.


FFX_MAX_NUM_UAVS

Copied!

#define FFX_MAX_NUM_UAVS 64

Maximum supported number of simultaneously bound UAVs.


FFX_MAX_PASS_COUNT

Copied!

#define FFX_MAX_PASS_COUNT (50)

Maximum number of passes per effect component.


FFX_MAX_QUEUED_FRAMES

Copied!

#define FFX_MAX_QUEUED_FRAMES (4)

Maximum number of queued frames in the backend.


FFX_MAX_RESOURCE_COUNT

Copied!

#define FFX_MAX_RESOURCE_COUNT (512)

Maximum number of resources per effect context.


FFX_MAX_SAMPLERS

Copied!

#define FFX_MAX_SAMPLERS (16)

Maximum number of samplers supported.


FFX_RESOURCE_NAME_SIZE

Copied!

#define FFX_RESOURCE_NAME_SIZE 64

Maximum number of characters in a resource name.


FFX_RING_BUFFER_DESCRIPTOR_COUNT

Copied!

#define FFX_RING_BUFFER_DESCRIPTOR_COUNT (FFX_MAX_QUEUED_FRAMES * FFX_MAX_PASS_COUNT * FFX_MAX_RESOURCE_COUNT)

Total number of descriptors in ring buffer needed for a single effect context.


UPLOAD_JOB_COUNT

Copied!

#define UPLOAD_JOB_COUNT (16)

Maximum number of simultaneous upload jobs.


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!