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.NativeResourceStructure specifying a viewport.Member documentation
xcoeff–xcoeffandycoeffare 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 classVkViewportWScalingNV.BufferAn array ofVkViewportWScalingNVstructs.
-
Constructor Summary
Constructors Constructor Description VkViewportWScalingNV(java.nio.ByteBuffer container)Creates aVkViewportWScalingNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkViewportWScalingNVcalloc()Returns a newVkViewportWScalingNVinstance allocated withmemCalloc.static VkViewportWScalingNV.Buffercalloc(int capacity)Returns a newVkViewportWScalingNV.Bufferinstance allocated withmemCalloc.static VkViewportWScalingNVcallocStack()Returns a newVkViewportWScalingNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkViewportWScalingNV.BuffercallocStack(int capacity)Returns a newVkViewportWScalingNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkViewportWScalingNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportWScalingNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportWScalingNVcreate()Returns a newVkViewportWScalingNVinstance allocated withBufferUtils.static VkViewportWScalingNV.Buffercreate(int capacity)Returns a newVkViewportWScalingNV.Bufferinstance allocated withBufferUtils.static VkViewportWScalingNVcreate(long address)Returns a newVkViewportWScalingNVinstance for the specified memory address.static VkViewportWScalingNV.Buffercreate(long address, int capacity)Create aVkViewportWScalingNV.Bufferinstance at the specified memory.static VkViewportWScalingNVcreateSafe(long address)static VkViewportWScalingNV.BuffercreateSafe(long address, int capacity)static VkViewportWScalingNVmalloc()Returns a newVkViewportWScalingNVinstance allocated withmemAlloc.static VkViewportWScalingNV.Buffermalloc(int capacity)Returns a newVkViewportWScalingNV.Bufferinstance allocated withmemAlloc.static VkViewportWScalingNVmallocStack()Returns a newVkViewportWScalingNVinstance allocated on the thread-localMemoryStack.static VkViewportWScalingNV.BuffermallocStack(int capacity)Returns a newVkViewportWScalingNV.Bufferinstance allocated on the thread-localMemoryStack.static VkViewportWScalingNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStack.static VkViewportWScalingNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStack.static floatnxcoeff(long struct)Unsafe version ofxcoeff().static voidnxcoeff(long struct, float value)Unsafe version ofxcoeff.static floatnycoeff(long struct)Unsafe version ofycoeff().static voidnycoeff(long struct, float value)Unsafe version ofycoeff.VkViewportWScalingNVset(float xcoeff, float ycoeff)Initializes this struct with the specified values.VkViewportWScalingNVset(VkViewportWScalingNV src)Copies the specified struct data to this struct.intsizeof()floatxcoeff()Returns the value of thexcoefffield.VkViewportWScalingNVxcoeff(float value)Sets the specified value to thexcoefffield.floatycoeff()Returns the value of theycoefffield.VkViewportWScalingNVycoeff(float value)Sets the specified value to theycoefffield.
-
-
-
Constructor Detail
-
VkViewportWScalingNV
public VkViewportWScalingNV(java.nio.ByteBuffer container)
Creates aVkViewportWScalingNVinstance 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
-
xcoeff
public float xcoeff()
Returns the value of thexcoefffield.
-
ycoeff
public float ycoeff()
Returns the value of theycoefffield.
-
xcoeff
public VkViewportWScalingNV xcoeff(float value)
Sets the specified value to thexcoefffield.
-
ycoeff
public VkViewportWScalingNV ycoeff(float value)
Sets the specified value to theycoefffield.
-
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 newVkViewportWScalingNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkViewportWScalingNV calloc()
Returns a newVkViewportWScalingNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkViewportWScalingNV create()
Returns a newVkViewportWScalingNVinstance allocated withBufferUtils.
-
create
public static VkViewportWScalingNV create(long address)
Returns a newVkViewportWScalingNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkViewportWScalingNV createSafe(long address)
-
malloc
public static VkViewportWScalingNV.Buffer malloc(int capacity)
Returns a newVkViewportWScalingNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkViewportWScalingNV.Buffer calloc(int capacity)
Returns a newVkViewportWScalingNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkViewportWScalingNV.Buffer create(int capacity)
Returns a newVkViewportWScalingNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkViewportWScalingNV.Buffer create(long address, int capacity)
Create aVkViewportWScalingNV.Bufferinstance 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 newVkViewportWScalingNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkViewportWScalingNV callocStack()
Returns a newVkViewportWScalingNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkViewportWScalingNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkViewportWScalingNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkViewportWScalingNV.Buffer callocStack(int capacity)
Returns a newVkViewportWScalingNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-