Package org.lwjgl.vulkan
Class VkViewportWScalingNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkViewportWScalingNV {
float xcoeff;
float ycoeff;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkViewportWScalingNV(ByteBuffer container) Creates aVkViewportWScalingNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkViewportWScalingNVcalloc()Returns a newVkViewportWScalingNVinstance allocated withmemCalloc.static VkViewportWScalingNV.Buffercalloc(int capacity) Returns a newVkViewportWScalingNV.Bufferinstance allocated withmemCalloc.static VkViewportWScalingNV.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportWScalingNVcalloc(MemoryStack stack) Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportWScalingNVDeprecated.static VkViewportWScalingNV.BuffercallocStack(int capacity) Deprecated.static VkViewportWScalingNV.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkViewportWScalingNVcallocStack(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 @Nullable VkViewportWScalingNVcreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStack.static VkViewportWScalingNVmalloc(MemoryStack stack) Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStack.static VkViewportWScalingNVDeprecated.static VkViewportWScalingNV.BuffermallocStack(int capacity) Deprecated.static VkViewportWScalingNV.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkViewportWScalingNVmallocStack(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.set(float xcoeff, float ycoeff) Initializes this struct with the specified values.set(VkViewportWScalingNV src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).floatxcoeff()xcoeff(float value) Sets the specified value to thexcoefffield.floatycoeff()ycoeff(float value) Sets the specified value to theycoefffield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
XCOEFF
public static final int XCOEFFThe struct member offsets. -
YCOEFF
public static final int YCOEFFThe struct member offsets.
-
-
Constructor Details
-
VkViewportWScalingNV
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkViewportWScalingNV>
-
xcoeff
public float xcoeff()- Returns:
- the value of the
xcoefffield.
-
ycoeff
public float ycoeff()- Returns:
- the value of the
ycoefffield.
-
xcoeff
Sets the specified value to thexcoefffield. -
ycoeff
Sets the specified value to theycoefffield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkViewportWScalingNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkViewportWScalingNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkViewportWScalingNVinstance allocated withBufferUtils. -
create
Returns a newVkViewportWScalingNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkViewportWScalingNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkViewportWScalingNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkViewportWScalingNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkViewportWScalingNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkViewportWScalingNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkViewportWScalingNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-