GetUser3DLUTIndex

Gets the index in the 3D LUT buffer corresponding to a triplet of red, green, and blue values.

Syntax

Copied!

ADLX_RESULT     GetUser3DLUTIndex (adlx_int lutSize, const ADLX_UINT16_RGB * rgbCoordinate, adlx_int* index)

Parameters

  1. [in] lutSize adlx_int The size of the User 3D LUT.

  2. [in] rgbCoordinate ADLX_UINT16_RGB * The co-ordinates of a user 3D LUT.

  3. [out] index adlx_int* The pointer to a variable where the index is returned.

Return Value

If the index of the 3D LUT from a flat array is successfully returned, ADLX_OK is returned.

If the index of the 3D LUT from a flat array is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

The 3D LUT table must contain between 5 and 17 points. Each point is defined by a triplet of red, green, and blue values.

GetUser3DLUTIndex is useful when constructing the 3D LUT buffer to set using SetHDRUser3DLUT , SetSDRUser3DLUT and SetAllUser3DLUT .

Additional Info

Note: SetAllUser3DLUT sets a custom 3D LUT data for both the SDR mode and HDR mode of a display.

Setting a custom 3D LUT data suitable for the SDR mode of the display with SetSDRUser3DLUT will delete the custom 3D LUT data for the HDR mode that was previously created with SetAllUser3DLUT . If a custom 3D LUT data suitable for the HDR mode is also required, it must be set with SetHDRUser3DLUT .

Setting a custom 3D LUT data suitable for the HDR mode of the display with SetHDRUser3DLUT will delete the custom 3D LUT data for the SDR mode that was previously created with SetAllUser3DLUT . If a custom 3D LUT data suitable for the SDR mode is also required, it must be set with SetSDRUser3DLUT .

Requirements

Header

include “IDisplay3DLUT.h”

Minimum version

1.0

Related pages

  • Visit the Adlx 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!