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 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.
XR_META_passthrough_color_lut extension must be enabled prior to using XrPassthroughColorLutCreateInfoMETAtype must be TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_METAnext must be NULL or a valid pointer to the next structure in a structure chainchannels must be a valid XrPassthroughColorLutChannelsMETA valuedata must be a valid XrPassthroughColorLutDataMETA structureXrPassthroughColorLutDataMETA, CreatePassthroughColorLutMETA
struct XrPassthroughColorLutCreateInfoMETA {
XrStructureType type;
void const * next;
XrPassthroughColorLutChannelsMETA channels;
uint32_t resolution;
XrPassthroughColorLutDataMETA data;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrPassthroughColorLutCreateInfoMETA.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CHANNELS
The struct member offsets. |
| public static final int | DATA
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | RESOLUTION
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrPassthroughColorLutCreateInfoMETA(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA | |
| public static XrPassthroughColorLutCreateInfoMETA. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughColorLutCreateInfoMETA | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrPassthroughColorLutCreateInfoMETA. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public XrPassthroughColorLutCreateInfoMETA | |
| protected XrPassthroughColorLutCreateInfoMETA | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrPassthroughColorLutCreateInfoMETA | |
| public static XrPassthroughColorLutCreateInfoMETA | create(long address)
Returns a new |
| public static XrPassthroughColorLutCreateInfoMETA. | create(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughColorLutCreateInfoMETA. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrPassthroughColorLutCreateInfoMETA | |
| public static XrPassthroughColorLutCreateInfoMETA. | |
| public XrPassthroughColorLutDataMETA | |
| public XrPassthroughColorLutCreateInfoMETA | data(XrPassthroughColorLutDataMETA value)
Copies the specified |
| public XrPassthroughColorLutCreateInfoMETA | data(Consumer<XrPassthroughColorLutDataMETA> consumer)
|
| public static XrPassthroughColorLutCreateInfoMETA | |
| public static XrPassthroughColorLutCreateInfoMETA. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughColorLutCreateInfoMETA | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrPassthroughColorLutCreateInfoMETA. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static XrPassthroughColorLutDataMETA | |
| public static void | |
| public long | |
| public XrPassthroughColorLutCreateInfoMETA | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public int | |
| public XrPassthroughColorLutCreateInfoMETA | |
| public XrPassthroughColorLutCreateInfoMETA | set(int type, long next, int channels, int resolution, XrPassthroughColorLutDataMETA data)
Initializes this struct with the specified values. |
| public XrPassthroughColorLutCreateInfoMETA | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrPassthroughColorLutCreateInfoMETA | |
| public XrPassthroughColorLutCreateInfoMETA | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CHANNELS | back to summary |
|---|---|
| public static final int CHANNELS The struct member offsets. | |
| DATA | back to summary |
|---|---|
| public static final int DATA The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| RESOLUTION | back to summary |
|---|---|
| public static final int RESOLUTION The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XrPassthroughColorLutCreateInfoMETA | back to summary |
|---|---|
| protected XrPassthroughColorLutCreateInfoMETA(long address, ByteBuffer container) | |
| XrPassthroughColorLutCreateInfoMETA | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA. Returns a new
| |
| channels | back to summary |
|---|---|
| public int channels() defines the color channels expected in one LUT element. The number of bytes expected per LUT element is 3 for
| |
| channels | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA channels(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected XrPassthroughColorLutCreateInfoMETA create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA. Like
| |
| data | back to summary |
|---|---|
| public XrPassthroughColorLutDataMETA data() contains the data the LUT is initialized with. | |
| data | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA data(XrPassthroughColorLutDataMETA value) Copies the specified | |
| data | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA data(Consumer<XrPassthroughColorLutDataMETA> consumer) | |
| malloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrPassthroughColorLutCreateInfoMETA. Returns a new
| |
| nchannels | back to summary |
|---|---|
| public static int nchannels(long struct) Unsafe version of | |
| nchannels | back to summary |
|---|---|
| public static void nchannels(long struct, int value) Unsafe version of | |
| ndata | back to summary |
|---|---|
| public static XrPassthroughColorLutDataMETA ndata(long struct) Unsafe version of | |
| ndata | back to summary |
|---|---|
| public static void ndata(long struct, XrPassthroughColorLutDataMETA value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA next(long value) Sets the specified value to the | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| nresolution | back to summary |
|---|---|
| public static int nresolution(long struct) Unsafe version of | |
| nresolution | back to summary |
|---|---|
| public static void nresolution(long struct, int value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| resolution | back to summary |
|---|---|
| public int resolution() the number of LUT elements per input channel. The total number of elements in the LUT is
| |
| resolution | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA resolution(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA set(int type, long next, int channels, int resolution, XrPassthroughColorLutDataMETA data) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA set(XrPassthroughColorLutCreateInfoMETA src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
XrPassthroughColorLutCreateInfoMETA structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrPassthroughColorLutCreateInfoMETA |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrPassthroughColorLutCreateInfoMETA ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| channels | back to summary |
|---|---|
public int channels()
| |
| channels | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA. Sets the specified value to the | |
| data | back to summary |
|---|---|
public XrPassthroughColorLutDataMETA data()
| |
| data | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA. Copies the specified | |
| data | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA. Passes the | |
| getElementFactory | back to summary |
|---|---|
| protected XrPassthroughColorLutCreateInfoMETA getElementFactory() Implements abstract org.
| |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA. Sets the specified value to the | |
| resolution | back to summary |
|---|---|
public int resolution()
| |
| resolution | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrPassthroughColorLutCreateInfoMETA. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrPassthroughColorLutCreateInfoMETA. Sets the | |