public class VkViewportSwizzleNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
x must be a valid VkViewportCoordinateSwizzleNV valuey must be a valid VkViewportCoordinateSwizzleNV valuez must be a valid VkViewportCoordinateSwizzleNV valuew must be a valid VkViewportCoordinateSwizzleNV valueVkPipelineViewportSwizzleStateCreateInfoNV
x – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the x component of the primitivey – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the y component of the primitivez – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the z component of the primitivew – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the w component of the primitive
struct VkViewportSwizzleNV {
VkViewportCoordinateSwizzleNV x;
VkViewportCoordinateSwizzleNV y;
VkViewportCoordinateSwizzleNV z;
VkViewportCoordinateSwizzleNV w;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkViewportSwizzleNV.Buffer
An array of
VkViewportSwizzleNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
W
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
static int |
Z
The struct member offsets.
|
| Constructor and Description |
|---|
VkViewportSwizzleNV(java.nio.ByteBuffer container)
Creates a
VkViewportSwizzleNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkViewportSwizzleNV |
calloc()
Returns a new
VkViewportSwizzleNV instance allocated with memCalloc. |
static VkViewportSwizzleNV.Buffer |
calloc(int capacity)
Returns a new
VkViewportSwizzleNV.Buffer instance allocated with memCalloc. |
static VkViewportSwizzleNV |
callocStack()
Returns a new
VkViewportSwizzleNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkViewportSwizzleNV.Buffer |
callocStack(int capacity)
Returns a new
VkViewportSwizzleNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkViewportSwizzleNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportSwizzleNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkViewportSwizzleNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportSwizzleNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkViewportSwizzleNV |
create()
Returns a new
VkViewportSwizzleNV instance allocated with BufferUtils. |
static VkViewportSwizzleNV.Buffer |
create(int capacity)
Returns a new
VkViewportSwizzleNV.Buffer instance allocated with BufferUtils. |
static VkViewportSwizzleNV |
create(long address)
Returns a new
VkViewportSwizzleNV instance for the specified memory address. |
static VkViewportSwizzleNV.Buffer |
create(long address,
int capacity)
Create a
VkViewportSwizzleNV.Buffer instance at the specified memory. |
static VkViewportSwizzleNV |
createSafe(long address)
|
static VkViewportSwizzleNV.Buffer |
createSafe(long address,
int capacity)
|
static VkViewportSwizzleNV |
malloc()
Returns a new
VkViewportSwizzleNV instance allocated with memAlloc. |
static VkViewportSwizzleNV.Buffer |
malloc(int capacity)
Returns a new
VkViewportSwizzleNV.Buffer instance allocated with memAlloc. |
static VkViewportSwizzleNV |
mallocStack()
Returns a new
VkViewportSwizzleNV instance allocated on the thread-local MemoryStack. |
static VkViewportSwizzleNV.Buffer |
mallocStack(int capacity)
Returns a new
VkViewportSwizzleNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkViewportSwizzleNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportSwizzleNV.Buffer instance allocated on the specified MemoryStack. |
static VkViewportSwizzleNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportSwizzleNV instance allocated on the specified MemoryStack. |
static int |
nw(long struct)
Unsafe version of
w(). |
static void |
nw(long struct,
int value)
Unsafe version of
w. |
static int |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
int value)
Unsafe version of
x. |
static int |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
int value)
Unsafe version of
y. |
static int |
nz(long struct)
Unsafe version of
z(). |
static void |
nz(long struct,
int value)
Unsafe version of
z. |
VkViewportSwizzleNV |
set(int x,
int y,
int z,
int w)
Initializes this struct with the specified values.
|
VkViewportSwizzleNV |
set(VkViewportSwizzleNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
w()
Returns the value of the
w field. |
VkViewportSwizzleNV |
w(int value)
Sets the specified value to the
w field. |
int |
x()
Returns the value of the
x field. |
VkViewportSwizzleNV |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
VkViewportSwizzleNV |
y(int value)
Sets the specified value to the
y field. |
int |
z()
Returns the value of the
z field. |
VkViewportSwizzleNV |
z(int value)
Sets the specified value to the
z field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public static final int Z
public static final int W
public VkViewportSwizzleNV(java.nio.ByteBuffer container)
VkViewportSwizzleNV instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int x()
x field.public int y()
y field.public int z()
z field.public int w()
w field.public VkViewportSwizzleNV x(int value)
x field.public VkViewportSwizzleNV y(int value)
y field.public VkViewportSwizzleNV z(int value)
z field.public VkViewportSwizzleNV w(int value)
w field.public VkViewportSwizzleNV set(int x, int y, int z, int w)
public VkViewportSwizzleNV set(VkViewportSwizzleNV src)
src - the source structpublic static VkViewportSwizzleNV malloc()
VkViewportSwizzleNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkViewportSwizzleNV calloc()
VkViewportSwizzleNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkViewportSwizzleNV create()
VkViewportSwizzleNV instance allocated with BufferUtils.public static VkViewportSwizzleNV create(long address)
VkViewportSwizzleNV instance for the specified memory address.@Nullable public static VkViewportSwizzleNV createSafe(long address)
public static VkViewportSwizzleNV.Buffer malloc(int capacity)
VkViewportSwizzleNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkViewportSwizzleNV.Buffer calloc(int capacity)
VkViewportSwizzleNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkViewportSwizzleNV.Buffer create(int capacity)
VkViewportSwizzleNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkViewportSwizzleNV.Buffer create(long address, int capacity)
VkViewportSwizzleNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkViewportSwizzleNV.Buffer createSafe(long address, int capacity)
public static VkViewportSwizzleNV mallocStack()
VkViewportSwizzleNV instance allocated on the thread-local MemoryStack.public static VkViewportSwizzleNV callocStack()
VkViewportSwizzleNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkViewportSwizzleNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkViewportSwizzleNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkViewportSwizzleNV callocStack(org.lwjgl.system.MemoryStack stack)
VkViewportSwizzleNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkViewportSwizzleNV.Buffer mallocStack(int capacity)
VkViewportSwizzleNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkViewportSwizzleNV.Buffer callocStack(int capacity)
VkViewportSwizzleNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkViewportSwizzleNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkViewportSwizzleNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkViewportSwizzleNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkViewportSwizzleNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nx(long struct)
x().public static int ny(long struct)
y().public static int nz(long struct)
z().public static int nw(long struct)
w().public static void nx(long struct,
int value)
x.public static void ny(long struct,
int value)
y.public static void nz(long struct,
int value)
z.public static void nw(long struct,
int value)
w.Copyright LWJGL. All Rights Reserved. License terms.