Package org.lwjgl.vulkan
Class VkXYColorEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkXYColorEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkXYColorEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify X,Y chromaticity coordinates.Description
Chromaticity coordinates are as specified in CIE 15:2004 “
Calculation of chromaticity coordinates” (Section 7.3) and are limited to between 0 and 1 for real colors for the reference monitor.See Also
Layout
struct VkXYColorEXT { floatx(); floaty(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkXYColorEXT.BufferAn array ofVkXYColorEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkXYColorEXT(java.nio.ByteBuffer container)Creates aVkXYColorEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkXYColorEXTcalloc()Returns a newVkXYColorEXTinstance allocated withmemCalloc.static VkXYColorEXT.Buffercalloc(int capacity)Returns a newVkXYColorEXT.Bufferinstance allocated withmemCalloc.static VkXYColorEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkXYColorEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkXYColorEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkXYColorEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkXYColorEXTcallocStack()Deprecated.static VkXYColorEXT.BuffercallocStack(int capacity)Deprecated.static VkXYColorEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkXYColorEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkXYColorEXTcreate()Returns a newVkXYColorEXTinstance allocated withBufferUtils.static VkXYColorEXT.Buffercreate(int capacity)Returns a newVkXYColorEXT.Bufferinstance allocated withBufferUtils.static VkXYColorEXTcreate(long address)Returns a newVkXYColorEXTinstance for the specified memory address.static VkXYColorEXT.Buffercreate(long address, int capacity)Create aVkXYColorEXT.Bufferinstance at the specified memory.static VkXYColorEXTcreateSafe(long address)static VkXYColorEXT.BuffercreateSafe(long address, int capacity)static VkXYColorEXTmalloc()Returns a newVkXYColorEXTinstance allocated withmemAlloc.static VkXYColorEXT.Buffermalloc(int capacity)Returns a newVkXYColorEXT.Bufferinstance allocated withmemAlloc.static VkXYColorEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkXYColorEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkXYColorEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkXYColorEXTinstance allocated on the specifiedMemoryStack.static VkXYColorEXTmallocStack()Deprecated.static VkXYColorEXT.BuffermallocStack(int capacity)Deprecated.static VkXYColorEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkXYColorEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static floatnx(long struct)Unsafe version ofx().static voidnx(long struct, float value)Unsafe version ofx.static floatny(long struct)Unsafe version ofy().static voidny(long struct, float value)Unsafe version ofy.VkXYColorEXTset(float x, float y)Initializes this struct with the specified values.VkXYColorEXTset(VkXYColorEXT src)Copies the specified struct data to this struct.intsizeof()floatx()thexchromaticity coordinate.VkXYColorEXTx(float value)Sets the specified value to thex()field.floaty()theychromaticity coordinate.VkXYColorEXTy(float value)Sets the specified value to they()field.
-
-
-
Constructor Detail
-
VkXYColorEXT
public VkXYColorEXT(java.nio.ByteBuffer container)
Creates aVkXYColorEXTinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
x
public float x()
thexchromaticity coordinate.
-
y
public float y()
theychromaticity coordinate.
-
x
public VkXYColorEXT x(float value)
Sets the specified value to thex()field.
-
y
public VkXYColorEXT y(float value)
Sets the specified value to they()field.
-
set
public VkXYColorEXT set(float x, float y)
Initializes this struct with the specified values.
-
set
public VkXYColorEXT set(VkXYColorEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkXYColorEXT malloc()
Returns a newVkXYColorEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkXYColorEXT calloc()
Returns a newVkXYColorEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkXYColorEXT create()
Returns a newVkXYColorEXTinstance allocated withBufferUtils.
-
create
public static VkXYColorEXT create(long address)
Returns a newVkXYColorEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkXYColorEXT createSafe(long address)
-
malloc
public static VkXYColorEXT.Buffer malloc(int capacity)
Returns a newVkXYColorEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkXYColorEXT.Buffer calloc(int capacity)
Returns a newVkXYColorEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkXYColorEXT.Buffer create(int capacity)
Returns a newVkXYColorEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkXYColorEXT.Buffer create(long address, int capacity)
Create aVkXYColorEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkXYColorEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkXYColorEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkXYColorEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkXYColorEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkXYColorEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkXYColorEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkXYColorEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkXYColorEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkXYColorEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkXYColorEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkXYColorEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkXYColorEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkXYColorEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkXYColorEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkXYColorEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkXYColorEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkXYColorEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nx
public static float nx(long struct)
Unsafe version ofx().
-
ny
public static float ny(long struct)
Unsafe version ofy().
-
nx
public static void nx(long struct, float value)Unsafe version ofx.
-
ny
public static void ny(long struct, float value)Unsafe version ofy.
-
-