Error Codes

Error codes returned from FidelityFX SDK functions.

Typedefs

Type

Description

typedef int32_t

Typedef for error codes returned from functions in the FidelityFX SDK.

Enumerations

Name

Description

FfxErrorCodes

Error codes and their meaning.
FFX_OK = 0 – The operation completed successfully.
FFX_ERROR_INVALID_POINTER = 0x80000000 – The operation failed due to an invalid pointer.
FFX_ERROR_INVALID_ALIGNMENT = 0x80000001 – The operation failed due to an invalid alignment.
FFX_ERROR_INVALID_SIZE = 0x80000002 – The operation failed due to an invalid size.
FFX_EOF = 0x80000003 – The end of the file was encountered.
FFX_ERROR_INVALID_PATH = 0x80000004 – The operation failed because the specified path was invalid.
FFX_ERROR_EOF = 0x80000005 – The operation failed because end of file was reached.
FFX_ERROR_MALFORMED_DATA = 0x80000006 – The operation failed because of some malformed data.
FFX_ERROR_OUT_OF_MEMORY = 0x80000007 – The operation failed because it ran out memory.
FFX_ERROR_INCOMPLETE_INTERFACE = 0x80000008 – The operation failed because the interface was not fully configured.
FFX_ERROR_INVALID_ENUM = 0x80000009 – The operation failed because of an invalid enumeration value.
FFX_ERROR_INVALID_ARGUMENT = 0x8000000a – The operation failed because an argument was invalid.
FFX_ERROR_OUT_OF_RANGE = 0x8000000b – The operation failed because a value was out of range.
FFX_ERROR_NULL_DEVICE = 0x8000000c – The operation failed because a device was null.
FFX_ERROR_BACKEND_API_ERROR = 0x8000000d – The operation failed because the backend API returned an error code.
FFX_ERROR_INSUFFICIENT_MEMORY = 0x8000000e – The operation failed because there was not enough memory.
FFX_ERROR_INVALID_VERSION = 0x8000000f – The operation failed because the wrong backend was linked.
FFX_ERROR_ACCESS_DENIED = 0x80000010 – The operation failed because access to the resource was denied.

Macros

Detailed description

Error codes returned from FidelityFX SDK functions.

Typedefs

FfxErrorCode

Copied!

typedef int32_t FfxErrorCode

Typedef for error codes returned from functions in the FidelityFX SDK.


Macros

FFX_RETURN_ON_ERROR

Copied!

#define FFX_RETURN_ON_ERROR (x, y)     if (!(x))                                       \\
{                                               \\
    return (y);                                 \\
}

Helper macro to return error code y from a function when a specific condition, x, is not met.


FFX_VALIDATE

Copied!

#define FFX_VALIDATE (x)     {                                               \\
    FfxErrorCode ret = x;                       \\
    FFX_RETURN_ON_ERROR(ret == FFX_OK, ret);    \\
}

Helper macro to return error code x from a function when it is not FFX_OK.


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!