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.