Package org.lwjgl.vulkan
Class VkViewportWScalingNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkViewportWScalingNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkViewportWScalingNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying a viewport.Member documentation
xcoeff
–xcoeff
andycoeff
are the viewport’s W scaling factor for x and y respectively.ycoeff
– seexcoeff
Layout
struct VkViewportWScalingNV { float xcoeff; float ycoeff; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkViewportWScalingNV.Buffer
An array ofVkViewportWScalingNV
structs.
-
Constructor Summary
Constructors Constructor Description VkViewportWScalingNV(java.nio.ByteBuffer container)
Creates aVkViewportWScalingNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkViewportWScalingNV
calloc()
Returns a newVkViewportWScalingNV
instance allocated withmemCalloc
.static VkViewportWScalingNV.Buffer
calloc(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated withmemCalloc
.static VkViewportWScalingNV
callocStack()
Returns a newVkViewportWScalingNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkViewportWScalingNV.Buffer
callocStack(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkViewportWScalingNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkViewportWScalingNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkViewportWScalingNV
create()
Returns a newVkViewportWScalingNV
instance allocated withBufferUtils
.static VkViewportWScalingNV.Buffer
create(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated withBufferUtils
.static VkViewportWScalingNV
create(long address)
Returns a newVkViewportWScalingNV
instance for the specified memory address.static VkViewportWScalingNV.Buffer
create(long address, int capacity)
Create aVkViewportWScalingNV.Buffer
instance at the specified memory.static VkViewportWScalingNV
createSafe(long address)
static VkViewportWScalingNV.Buffer
createSafe(long address, int capacity)
static VkViewportWScalingNV
malloc()
Returns a newVkViewportWScalingNV
instance allocated withmemAlloc
.static VkViewportWScalingNV.Buffer
malloc(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated withmemAlloc
.static VkViewportWScalingNV
mallocStack()
Returns a newVkViewportWScalingNV
instance allocated on the thread-localMemoryStack
.static VkViewportWScalingNV.Buffer
mallocStack(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkViewportWScalingNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkViewportWScalingNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV
instance allocated on the specifiedMemoryStack
.static float
nxcoeff(long struct)
Unsafe version ofxcoeff()
.static void
nxcoeff(long struct, float value)
Unsafe version ofxcoeff
.static float
nycoeff(long struct)
Unsafe version ofycoeff()
.static void
nycoeff(long struct, float value)
Unsafe version ofycoeff
.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 thexcoeff
field.VkViewportWScalingNV
xcoeff(float value)
Sets the specified value to thexcoeff
field.float
ycoeff()
Returns the value of theycoeff
field.VkViewportWScalingNV
ycoeff(float value)
Sets the specified value to theycoeff
field.
-
-
-
Constructor Detail
-
VkViewportWScalingNV
public VkViewportWScalingNV(java.nio.ByteBuffer container)
Creates aVkViewportWScalingNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
xcoeff
public float xcoeff()
Returns the value of thexcoeff
field.
-
ycoeff
public float ycoeff()
Returns the value of theycoeff
field.
-
xcoeff
public VkViewportWScalingNV xcoeff(float value)
Sets the specified value to thexcoeff
field.
-
ycoeff
public VkViewportWScalingNV ycoeff(float value)
Sets the specified value to theycoeff
field.
-
set
public VkViewportWScalingNV set(float xcoeff, float ycoeff)
Initializes this struct with the specified values.
-
set
public VkViewportWScalingNV set(VkViewportWScalingNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkViewportWScalingNV malloc()
Returns a newVkViewportWScalingNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkViewportWScalingNV calloc()
Returns a newVkViewportWScalingNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkViewportWScalingNV create()
Returns a newVkViewportWScalingNV
instance allocated withBufferUtils
.
-
create
public static VkViewportWScalingNV create(long address)
Returns a newVkViewportWScalingNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkViewportWScalingNV createSafe(long address)
-
malloc
public static VkViewportWScalingNV.Buffer malloc(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkViewportWScalingNV.Buffer calloc(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkViewportWScalingNV.Buffer create(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkViewportWScalingNV.Buffer create(long address, int capacity)
Create aVkViewportWScalingNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkViewportWScalingNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkViewportWScalingNV mallocStack()
Returns a newVkViewportWScalingNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkViewportWScalingNV callocStack()
Returns a newVkViewportWScalingNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkViewportWScalingNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkViewportWScalingNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkViewportWScalingNV.Buffer mallocStack(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkViewportWScalingNV.Buffer callocStack(int capacity)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkViewportWScalingNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkViewportWScalingNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nxcoeff
public static float nxcoeff(long struct)
Unsafe version ofxcoeff()
.
-
nycoeff
public static float nycoeff(long struct)
Unsafe version ofycoeff()
.
-
nxcoeff
public static void nxcoeff(long struct, float value)
Unsafe version ofxcoeff
.
-
nycoeff
public static void nycoeff(long struct, float value)
Unsafe version ofycoeff
.
-
-