public class VkViewportWScalingNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
xcoeff – xcoeff and ycoeff are the viewport’s W scaling factor for x and y respectively.ycoeff – see xcoeff
struct VkViewportWScalingNV {
float xcoeff;
float ycoeff;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkViewportWScalingNV.Buffer
An array of
VkViewportWScalingNV 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 |
XCOEFF
The struct member offsets.
|
static int |
YCOEFF
The struct member offsets.
|
| Constructor and Description |
|---|
VkViewportWScalingNV(java.nio.ByteBuffer container)
Creates a
VkViewportWScalingNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkViewportWScalingNV |
calloc()
Returns a new
VkViewportWScalingNV instance allocated with memCalloc. |
static VkViewportWScalingNV.Buffer |
calloc(int capacity)
Returns a new
VkViewportWScalingNV.Buffer instance allocated with memCalloc. |
static VkViewportWScalingNV |
callocStack()
Returns a new
VkViewportWScalingNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkViewportWScalingNV.Buffer |
callocStack(int capacity)
Returns a new
VkViewportWScalingNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkViewportWScalingNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportWScalingNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkViewportWScalingNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportWScalingNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkViewportWScalingNV |
create()
Returns a new
VkViewportWScalingNV instance allocated with BufferUtils. |
static VkViewportWScalingNV.Buffer |
create(int capacity)
Returns a new
VkViewportWScalingNV.Buffer instance allocated with BufferUtils. |
static VkViewportWScalingNV |
create(long address)
Returns a new
VkViewportWScalingNV instance for the specified memory address. |
static VkViewportWScalingNV.Buffer |
create(long address,
int capacity)
Create a
VkViewportWScalingNV.Buffer instance at the specified memory. |
static VkViewportWScalingNV |
createSafe(long address)
|
static VkViewportWScalingNV.Buffer |
createSafe(long address,
int capacity)
|
static VkViewportWScalingNV |
malloc()
Returns a new
VkViewportWScalingNV instance allocated with memAlloc. |
static VkViewportWScalingNV.Buffer |
malloc(int capacity)
Returns a new
VkViewportWScalingNV.Buffer instance allocated with memAlloc. |
static VkViewportWScalingNV |
mallocStack()
Returns a new
VkViewportWScalingNV instance allocated on the thread-local MemoryStack. |
static VkViewportWScalingNV.Buffer |
mallocStack(int capacity)
Returns a new
VkViewportWScalingNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkViewportWScalingNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportWScalingNV.Buffer instance allocated on the specified MemoryStack. |
static VkViewportWScalingNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkViewportWScalingNV instance allocated on the specified MemoryStack. |
static float |
nxcoeff(long struct)
Unsafe version of
xcoeff(). |
static void |
nxcoeff(long struct,
float value)
Unsafe version of
xcoeff. |
static float |
nycoeff(long struct)
Unsafe version of
ycoeff(). |
static void |
nycoeff(long struct,
float value)
Unsafe version of
ycoeff. |
VkViewportWScalingNV |
set(float xcoeff,
float ycoeff)
Initializes this struct with the specified values.
|
VkViewportWScalingNV |
set(VkViewportWScalingNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
float |
xcoeff()
Returns the value of the
xcoeff field. |
VkViewportWScalingNV |
xcoeff(float value)
Sets the specified value to the
xcoeff field. |
float |
ycoeff()
Returns the value of the
ycoeff field. |
VkViewportWScalingNV |
ycoeff(float value)
Sets the specified value to the
ycoeff field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int XCOEFF
public static final int YCOEFF
public VkViewportWScalingNV(java.nio.ByteBuffer container)
VkViewportWScalingNV 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 float xcoeff()
xcoeff field.public float ycoeff()
ycoeff field.public VkViewportWScalingNV xcoeff(float value)
xcoeff field.public VkViewportWScalingNV ycoeff(float value)
ycoeff field.public VkViewportWScalingNV set(float xcoeff, float ycoeff)
public VkViewportWScalingNV set(VkViewportWScalingNV src)
src - the source structpublic static VkViewportWScalingNV malloc()
VkViewportWScalingNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkViewportWScalingNV calloc()
VkViewportWScalingNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkViewportWScalingNV create()
VkViewportWScalingNV instance allocated with BufferUtils.public static VkViewportWScalingNV create(long address)
VkViewportWScalingNV instance for the specified memory address.@Nullable public static VkViewportWScalingNV createSafe(long address)
public static VkViewportWScalingNV.Buffer malloc(int capacity)
VkViewportWScalingNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkViewportWScalingNV.Buffer calloc(int capacity)
VkViewportWScalingNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkViewportWScalingNV.Buffer create(int capacity)
VkViewportWScalingNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkViewportWScalingNV.Buffer create(long address, int capacity)
VkViewportWScalingNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkViewportWScalingNV.Buffer createSafe(long address, int capacity)
public static VkViewportWScalingNV mallocStack()
VkViewportWScalingNV instance allocated on the thread-local MemoryStack.public static VkViewportWScalingNV callocStack()
VkViewportWScalingNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkViewportWScalingNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkViewportWScalingNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkViewportWScalingNV callocStack(org.lwjgl.system.MemoryStack stack)
VkViewportWScalingNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkViewportWScalingNV.Buffer mallocStack(int capacity)
VkViewportWScalingNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkViewportWScalingNV.Buffer callocStack(int capacity)
VkViewportWScalingNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkViewportWScalingNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkViewportWScalingNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkViewportWScalingNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkViewportWScalingNV.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 float nxcoeff(long struct)
xcoeff().public static float nycoeff(long struct)
ycoeff().public static void nxcoeff(long struct,
float value)
xcoeff.public static void nycoeff(long struct,
float value)
ycoeff.Copyright LWJGL. All Rights Reserved. License terms.