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.See Also
VkPipelineViewportWScalingStateCreateInfoNV,CmdSetViewportWScalingNVLayout
struct VkViewportWScalingNV { floatxcoeff(); floatycoeff(); }
-
-
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 Deprecated 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 VkViewportWScalingNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportWScalingNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportWScalingNVcallocStack()Deprecated.static VkViewportWScalingNV.BuffercallocStack(int capacity)Deprecated.static VkViewportWScalingNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkViewportWScalingNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkViewportWScalingNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStack.static VkViewportWScalingNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStack.static VkViewportWScalingNVmallocStack()Deprecated.static VkViewportWScalingNV.BuffermallocStack(int capacity)Deprecated.static VkViewportWScalingNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkViewportWScalingNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()xcoeffandycoeffare the viewport’s W scaling factor for x and y respectively.VkViewportWScalingNVxcoeff(float value)Sets the specified value to thexcoeff()field.floatycoeff()seexcoeffVkViewportWScalingNVycoeff(float value)Sets the specified value to theycoeff()field.
-
-
-
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()
xcoeffandycoeffare the viewport’s W scaling factor for x and y respectively.
-
ycoeff
public float ycoeff()
seexcoeff
-
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 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
@Deprecated public static VkViewportWScalingNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkViewportWScalingNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkViewportWScalingNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkViewportWScalingNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkViewportWScalingNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkViewportWScalingNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkViewportWScalingNV.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 VkViewportWScalingNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkViewportWScalingNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkViewportWScalingNV calloc(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
-
malloc
public static VkViewportWScalingNV.Buffer malloc(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
-
calloc
public static VkViewportWScalingNV.Buffer calloc(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.
-
-