Class XrPassthroughColorLutCreateInfoMETA

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrPassthroughColorLutCreateInfoMETA>
org.lwjgl.openxr.XrPassthroughColorLutCreateInfoMETA
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrPassthroughColorLutCreateInfoMETA extends org.lwjgl.system.Struct<XrPassthroughColorLutCreateInfoMETA> implements org.lwjgl.system.NativeResource
Passthrough color LUT creation info.
Description

resolution must be a power of 2, otherwise the runtime must return ERROR_VALIDATION_FAILURE. The runtime may impose a limit on the maximum supported resolution, which is indicated in XrSystemPassthroughColorLutPropertiesMETA. If resolution exceeds that limit, the runtime must return ERROR_VALIDATION_FAILURE.

data contains a 3-dimensional array which defines an output color for each RGB input color. The input color is scaled to be in the range [0, resolution]. For an RGBA LUT, the RGBA tuple of output colors for an input color (Rin, Gin, Bin) is found in the four bytes starting at the offset 4 * (Rin + Gin * resolution + Bin * resolution2). For an RGB LUT, the RGB tuple of output colors for an input color (Rin, Gin, Bin) is found in the three bytes starting at the offset 3 * (Rin + Gin * resolution + Bin * resolution2).

Color LUT data must be specified and interpreted in sRGB color space.

Runtimes must employ trilinear interpolation of neighboring color values if the resolution of the color LUT is smaller than the bit depth of the input colors.

The value of XrPassthroughColorLutDataMETA::bufferSize in data must be equal to resolution3 * bytesPerElement, where bytesPerElement is either 3 or 4 depending on channels. Otherwise, the runtime must return ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META.

Valid Usage (Implicit)
See Also

XrPassthroughColorLutDataMETA, CreatePassthroughColorLutMETA

Layout


 struct XrPassthroughColorLutCreateInfoMETA {
     XrStructureType type();
     void const * next();
     XrPassthroughColorLutChannelsMETA channels();
     uint32_t resolution();
     XrPassthroughColorLutDataMETA data();
 }